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:
@@ -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
|
||||
|
Reference in New Issue
Block a user