MySql: INT64 supported

git-svn-id: svn://ultimatepp.org/upp/trunk@7741 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-09-29 06:33:40 +00:00
parent debfea2072
commit 47d77449e4

View file

@ -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;