SA-MP Forums Archive
Catch SQLite errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Catch SQLite errors (/showthread.php?tid=536100)



Catch SQLite errors - Tokyo - 07.09.2014

Hello,

Is there any way to catch SQLite queries or general errors?
I'm using the native samp SQLite (https://sampwiki.blast.hk/wiki/SQLite), and not found such function.

Thanks!


Re: Catch SQLite errors - CutX - 07.09.2014

use SQLitei

Quote:
Originally Posted by Slice
Посмотреть сообщение
A few issues taken care of:
  • You can see error messages from db_query (for example, no such column name: test).
  • NULL values in results caused the server to crash when using db_get_field.
  • Freeing results twice caused a crash.
  • Not freeing results at all caused memory leaks. SQLitei will take care of this, though you should still free results (especially if you're running many queries in a loop for example).
  • You couldn't browse through results back and forth - db_next_row was the only function available.