Catch SQLite errors
#1

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!
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)