Review MySQL casts rules with auto_increment, fix #96.

This commit is contained in:
Dimitri Fontaine 2014-07-12 22:41:20 +02:00
parent 53a7e47058
commit f5fc5cce73
2 changed files with 13 additions and 13 deletions

View File

@ -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

View File

@ -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