mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-07 23:07:00 +02:00
Desultory code maintenance for MS SQL identity support.
The code expects the keyword :auto-increment rather than a string nowadays in order to process an extra column bits of information as meaning that we want to cast to a serial/bigserial datatype.
This commit is contained in:
parent
6c80404249
commit
6eaad0621b
@ -125,7 +125,7 @@
|
|||||||
field
|
field
|
||||||
(declare (ignore schema)) ; FIXME
|
(declare (ignore schema)) ; FIXME
|
||||||
(let* ((ctype (mssql-column-ctype field))
|
(let* ((ctype (mssql-column-ctype field))
|
||||||
(extra (when (mssql-column-identity field) "auto_increment"))
|
(extra (when (mssql-column-identity field) :auto-increment))
|
||||||
(pgcol
|
(pgcol
|
||||||
(apply-casting-rules table-name name type ctype default nullable extra)))
|
(apply-casting-rules table-name name type ctype default nullable extra)))
|
||||||
;; the MS SQL driver smartly maps data to the proper CL type, but the
|
;; the MS SQL driver smartly maps data to the proper CL type, but the
|
||||||
|
Loading…
Reference in New Issue
Block a user