From d5314a66407b1f59ccfb1ca298287af1f17798f0 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Sat, 11 Apr 2020 18:32:58 +0200 Subject: [PATCH] Add support for type "signed long" in SQLite. Fixes #1126. --- src/parsers/parse-sqlite-type-name.lisp | 1 + src/sources/sqlite/sqlite-cast-rules.lisp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/parsers/parse-sqlite-type-name.lisp b/src/parsers/parse-sqlite-type-name.lisp index e6adae4..cfa9fb2 100644 --- a/src/parsers/parse-sqlite-type-name.lisp +++ b/src/parsers/parse-sqlite-type-name.lisp @@ -7,6 +7,7 @@ (defrule extra-qualifiers (and (? " ") (or (~ "unsigned") + (~ "signed") (~ "short") (~ "varying") (~ "native") diff --git a/src/sources/sqlite/sqlite-cast-rules.lisp b/src/sources/sqlite/sqlite-cast-rules.lisp index 3b2cf50..e162a5a 100644 --- a/src/sources/sqlite/sqlite-cast-rules.lisp +++ b/src/sources/sqlite/sqlite-cast-rules.lisp @@ -23,6 +23,9 @@ (:source (:type "integer") :target (:type "bigint") :using pgloader.transforms::integer-to-string) + (:source (:type "long") :target (:type "bigint") + :using pgloader.transforms::integer-to-string) + (:source (:type "float") :target (:type "float") :using pgloader.transforms::float-to-string)