Skip to content

Commit

Permalink
hotfix: string column must be TEXT type
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Apr 10, 2024
1 parent 68770d4 commit 9375f6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/sql-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export function convertSqliteType(
if (type.indexOf("CHAR") >= 0) return TableColumnDataType.TEXT;
if (type.indexOf("TEXT") >= 0) return TableColumnDataType.TEXT;
if (type.indexOf("CLOB") >= 0) return TableColumnDataType.TEXT;
if (type.indexOf("STRING") >= 0) return TableColumnDataType.TEXT;

if (type.indexOf("INT") >= 0) return TableColumnDataType.INTEGER;

Expand All @@ -54,7 +55,7 @@ export function convertSqliteType(
)
return TableColumnDataType.REAL;

return TableColumnDataType.BLOB;
return TableColumnDataType.TEXT;
}

export function generateSelectOneWithConditionStatement(
Expand Down

0 comments on commit 9375f6e

Please sign in to comment.