1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Fix problems with ODBC raised by Adding the type TYPE_BIGINT (longlong).

This commit is contained in:
Olivier Bertrand
2013-01-24 19:18:54 +01:00
parent 1d67d9bf2f
commit ba82edd41e
4 changed files with 30 additions and 11 deletions

View File

@@ -48,6 +48,8 @@ int MYSQLtoPLG(char *typname)
!stricmp(typname, "time") || !stricmp(typname, "timestamp") ||
!stricmp(typname, "year"))
type = TYPE_DATE;
else if (!stricmp(typname, "bigint") || !stricmp(typname, "longlong"))
type = TYPE_BIGINT;
else
type = TYPE_ERROR;
@@ -77,6 +79,9 @@ enum enum_field_types PLGtoMYSQL(int type, bool gdf)
case TYPE_STRING:
mytype = MYSQL_TYPE_VARCHAR;
break;
case TYPE_BIGINT:
mytype = MYSQL_TYPE_LONGLONG;
break;
default:
mytype = MYSQL_TYPE_NULL;
} // endswitch mytype