Skip to content

DB Query #89

@Rochet2

Description

@Rochet2

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)

local Q = CharDBQuery("select (a >= b) from table;")
if (Q) then
    print(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))
else
    print("Q_Q")
end

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions