From 3848ad6ae520c6f59a9bd79cddaed63df1e7b896 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Thu, 30 Apr 2015 18:17:13 +0200 Subject: [PATCH] SQLite integers can host bigints, fix #227. --- pgloader.1 | 3 +++ pgloader.1.md | 1 + src/sources/sqlite/sqlite-cast-rules.lisp | 1 + 3 files changed, 5 insertions(+) diff --git a/pgloader.1 b/pgloader.1 index 456f42e..0ac7c0b 100644 --- a/pgloader.1 +++ b/pgloader.1 @@ -2400,6 +2400,9 @@ Numbers: type tinyint to smallint . .IP "\(bu" 4 +type integer to bigint +. +.IP "\(bu" 4 type float to float using float\-to\-string . .IP "\(bu" 4 diff --git a/pgloader.1.md b/pgloader.1.md index 6f9ba4d..ba722fd 100644 --- a/pgloader.1.md +++ b/pgloader.1.md @@ -1960,6 +1960,7 @@ When migrating from SQLite the following Casting Rules are provided: Numbers: - type tinyint to smallint + - type integer to bigint - type float to float using float-to-string - type real to real using float-to-string diff --git a/src/sources/sqlite/sqlite-cast-rules.lisp b/src/sources/sqlite/sqlite-cast-rules.lisp index 4a154e5..fef19b8 100644 --- a/src/sources/sqlite/sqlite-cast-rules.lisp +++ b/src/sources/sqlite/sqlite-cast-rules.lisp @@ -16,6 +16,7 @@ (:source (:type "clob") :target (:type "text" :drop-typemod t)) (:source (:type "tinyint") :target (:type "smallint")) + (:source (:type "integer") :target (:type "bigint")) (:source (:type "float") :target (:type "float") :using pgloader.transforms::float-to-string)