oscar-broman / sqlitei

High-level API for the SA-MP SQLite functions.
19 stars 17 forks source link

Fixed some tags and a debug print when the query is packed #2

Closed Jessyy closed 11 years ago

Jessyy commented 11 years ago

Added tag 'bool:' for these functions (I asked you few days ago about them - "You're right - they should be tagged with bool."): stock db_rewind(DBResult:dbrResult) { stock db_set_row_index(DBResult:dbrResult, iRow) { stock db_free_result_hook(DBResult:dbrResult) { stock db_set_synchronous(DB:db, DB::e_SYNCHRONOUS_MODE:iValue) { stock stmt_bindvalue(&DBStatement:stStatement, iParam, DBDataType:iType, {Float, }:...) { stock stmt_skip_row(&DBStatement:stStatement) { stock db_dump_table(DB:db, const szTable[], const szFilename[]) { Fixed a debug problem when using 'db_prepare': gs_dbsAccountLoadLastIP = db_prepare(gDB_ServerData, !"SELECT Ipv4, Autolog FROM ACCOUNTS WHERE Name = ?"); Before fix: 'SQLitei Debug: (db_prepare=2) Preparing statement with 1 params: EI,tgOCNWEm ' After fix: 'SQLitei Debug: (db_prepare=2) Preparing statement with 1 params: SELECT Ipv4, Autolog FROM ACCOUNTS WHERE Name = ?' Removed the tag ('DBResult:') from this function 'stmt_free_result' because is not return any value.

oscar-broman commented 11 years ago

Thanks :thumbsup: