mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
MySql: INT64 supported
git-svn-id: svn://ultimatepp.org/upp/trunk@7741 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
debfea2072
commit
47d77449e4
1 changed files with 5 additions and 0 deletions
|
|
@ -334,6 +334,8 @@ bool MySqlConnection::Execute() {
|
|||
f.type = INT_V;
|
||||
break;
|
||||
case FIELD_TYPE_LONGLONG:
|
||||
f.type = INT64_V;
|
||||
break;
|
||||
case FIELD_TYPE_DECIMAL:
|
||||
case FIELD_TYPE_FLOAT:
|
||||
case FIELD_TYPE_DOUBLE:
|
||||
|
|
@ -418,6 +420,9 @@ void MySqlConnection::GetColumn(int i, Ref f) const {
|
|||
case INT_V:
|
||||
f = atoi(s);
|
||||
break;
|
||||
case INT64_V:
|
||||
f = ScanInt64(s);
|
||||
break;
|
||||
case DOUBLE_V:
|
||||
f = ScanDouble(s, NULL, true);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue