Core/DBLayer: Fix Field::GetInt64 parsing for non-prepared statements
This commit is contained in:
@@ -168,7 +168,7 @@ class Field
|
|||||||
#endif
|
#endif
|
||||||
if (data.raw)
|
if (data.raw)
|
||||||
return *reinterpret_cast<int64*>(data.value);
|
return *reinterpret_cast<int64*>(data.value);
|
||||||
return static_cast<int64>(atol((char*)data.value));
|
return static_cast<int64>(strtol((char*)data.value, NULL, 10));
|
||||||
}
|
}
|
||||||
|
|
||||||
float GetFloat() const
|
float GetFloat() const
|
||||||
|
|||||||
Reference in New Issue
Block a user