From f5fc5cce73184f0e91b99d336e33712cd02ea2b8 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Sat, 12 Jul 2014 22:41:20 +0200 Subject: [PATCH] Review MySQL casts rules with auto_increment, fix #96. --- pgloader.1 | 14 +++++++------- pgloader.1.md | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/pgloader.1 b/pgloader.1 index 782918c..59d8a80 100644 --- a/pgloader.1 +++ b/pgloader.1 @@ -1,7 +1,7 @@ .\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . -.TH "PGLOADER" "1" "June 2014" "ff" "" +.TH "PGLOADER" "1" "July 2014" "ff" "" . .SH "NAME" \fBpgloader\fR \- PostgreSQL data loader @@ -1336,22 +1336,22 @@ When migrating from MySQL the following Casting Rules are provided: Numbers: . .IP "\(bu" 4 -type int to serial when auto_increment and (< precision 10) +type int with extra auto_increment to serial when (< precision 10) . .IP "\(bu" 4 -type int to bigserial when auto_increment and (<= 10 precision) +type int with extra auto_increment to bigserial when (<= 10 precision) . .IP "\(bu" 4 -type int to int when not auto_increment and (< precision 10) +type int to int when (< precision 10) . .IP "\(bu" 4 -type int to bigint when not auto_increment and (<= 10 precision) +type int to bigint when (<= 10 precision) . .IP "\(bu" 4 -type smallint to serial when auto_increment +type smallint with extra auto_increment to serial . .IP "\(bu" 4 -type bigint to bigserial when auto_increment +type bigint with extra auto_increment to bigserial . .IP "\(bu" 4 type tinyint to boolean when (= 1 precision) using tinyint\-to\-boolean diff --git a/pgloader.1.md b/pgloader.1.md index fa82db6..ad57075 100644 --- a/pgloader.1.md +++ b/pgloader.1.md @@ -1134,12 +1134,12 @@ When migrating from MySQL the following Casting Rules are provided: Numbers: - - type int to serial when auto_increment and (< precision 10) - - type int to bigserial when auto_increment and (<= 10 precision) - - type int to int when not auto_increment and (< precision 10) - - type int to bigint when not auto_increment and (<= 10 precision) - - type smallint to serial when auto_increment - - type bigint to bigserial when auto_increment + - type int with extra auto_increment to serial when (< precision 10) + - type int with extra auto_increment to bigserial when (<= 10 precision) + - type int to int when (< precision 10) + - type int to bigint when (<= 10 precision) + - type smallint with extra auto_increment to serial + - type bigint with extra auto_increment to bigserial - type tinyint to boolean when (= 1 precision) using tinyint-to-boolean