You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Possible bug comparing 2 bigint columns in DB and then trying to compare them and fetch the result to lua.
Prints 1 for all on my machine and 0 for all on someone else's computer.
In both cases / any case getting a string, int64 or uint64 will be correct. I may have bad MySQL version distorting the result. (Higher than TC supported)
localQ=CharDBQuery("select (a >= b) from table;")
if (Q) thenprint(Q:GetColumnCount())
print(Q:GetRowCount())
print()
print(Q:GetBool(0))
print(Q:GetUInt8(0))
print(Q:GetUInt16(0))
print(Q:GetUInt32(0))
print(Q:GetUInt64(0))
print(Q:GetInt8(0))
print(Q:GetInt16(0))
print(Q:GetInt32(0))
print(Q:GetInt64(0))
print(Q:GetFloat(0))
print(Q:GetDouble(0))
print(Q:GetString(0))
print(Q:GetCString(0))
print(Q:IsNull(0))
elseprint("Q_Q")
end
The text was updated successfully, but these errors were encountered:
It seems that all non defined types like COUNT(*)SELECT 1; and boolean return values like in example above and are BIGINT.
What this means that any non column or set type is a BIGINT or DECIMAL
This is an important notice when coding and ignoring data types of DB. One should not as it can distort the results completely, even if the value you fetch is within given range.
We should possibly implement uint64 as a proper object instead of string to be able to do math with it.
Possible bug comparing 2 bigint columns in DB and then trying to compare them and fetch the result to lua.
Prints 1 for all on my machine and 0 for all on someone else's computer.
In both cases / any case getting a string, int64 or uint64 will be correct.
I may have bad MySQL version distorting the result. (Higher than TC supported)The text was updated successfully, but these errors were encountered: