Skip to content

Commit ec2164a

Browse files
author
MPCoreDeveloper
committed
fix(single-file): map BIGINT to DataType.Long in ExecuteCreateTableInternal
1 parent 1fb53fa commit ec2164a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/SharpCoreDB/DatabaseExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,14 +682,14 @@ private void ExecuteCreateTableInternal(string sql)
682682
columns.Add(colName);
683683
columnTypes.Add(typeStr switch
684684
{
685-
"INT" or "INTEGER" or "BIGINT" => DataType.Integer,
685+
"INT" or "INTEGER" => DataType.Integer,
686+
"BIGINT" or "LONG" => DataType.Long,
686687
"TEXT" or "VARCHAR" or "CHAR" or "NVARCHAR" => DataType.String,
687688
"REAL" or "FLOAT" or "DOUBLE" => DataType.Real,
688689
"DECIMAL" or "NUMERIC" => DataType.Decimal,
689690
"DATETIME" or "DATE" or "TIMESTAMP" => DataType.DateTime,
690691
"BLOB" => DataType.Blob,
691692
"BOOLEAN" or "BOOL" => DataType.Boolean,
692-
"LONG" => DataType.Long,
693693
"GUID" or "UUID" => DataType.Guid,
694694
_ => DataType.String
695695
});

0 commit comments

Comments
 (0)