Quick SQLite question
#1

This:

Код:
format( Query, sizeof( Query ), "SELECT password FROM users WHERE username = '%s' LIMIT 0, 1", DB_Escape( User[ playerid ][ USER_NAME ] ) );
Can now (as of 0.3.7 R2) be just:

Код:
format( Query, sizeof( Query ), "SELECT password FROM users WHERE username = '%q' LIMIT 0, 1", User[ playerid ][ USER_NAME ] );
?
Reply
#2

Yes, you can now use this:

pawn Код:
format( Query, sizeof( Query ), "SELECT password FROM users WHERE username = '%q' LIMIT 0, 1", User[ playerid ][ USER_NAME ] );
since the 0.3.7 version has been released. No need to use DB_Escape now use only the "%q" specifier!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)