| 369 | |
| 370 | |
| 371 | static sqlite3_stmt *prepStatement(Dynamic handle,int n) |
| 372 | { |
| 373 | result *r = getResult(handle,true); |
| 374 | if( n < 0 || n >= r->ncols ) |
| 375 | hx::Throw( HX_CSTRING("Sqlite: Invalid index") ); |
| 376 | |
| 377 | if( r->first ) |
| 378 | _hx_sqlite_result_next(handle); |
| 379 | |
| 380 | if( r->done ) |
| 381 | hx::Throw( HX_CSTRING("Sqlite: no more results") ); |
| 382 | |
| 383 | return r->r; |
| 384 | } |
| 385 | |
| 386 | /** |
| 387 | result_get : 'result -> n:int -> string |
no test coverage detected