MySQL integer-based column type
#1

Would cache_get_row_int work on any integer-based column type (TINYINT, SMALLINT, MEDIUMINT, INT, BIGINT)?
Reply
#2

Yes. Works for boolean also. However, note that PAWN is typeless, and all integers are 32-bit signed.
Reply
#3

Having BIGINT and a really long number will just give:
pawn Code:
[ERROR] cache_get_row_int - invalid datatype
in mysql logs and return nothing. Just keep in mind that values shouldn't exceed 2.1 billions.
Reply
#4

Ah, thanks MP2. Thanks for the extra tips too, Konstantinos!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)