Quote:
Originally Posted by Misiur
Included in a_mysql:
Example:
pawn Код:
new probablyNullField[64] ; cache_get_row(0, 0, probablyNullField, 1, 64); if(ismysqlnull(probablyNullField)) { print("Oh my, that field was null!"); } else { printf("That field wasn't null, and its contents are: %s", probablyNullField); }
Cache_get_*_int/float probably automagically convert null to 0, so if you have nullable field with distinct reason for null usage, use the former version.
|
Alright, thank you for the detailed explanation.
+REP