Square brackets around source field options are now mandatory.

This commit is contained in:
Dimitri Fontaine 2014-10-02 01:17:24 +02:00
parent 2f49c9614c
commit 08fc7fd092
6 changed files with 9 additions and 9 deletions

View File

@ -775,7 +775,7 @@ How many bytes to read from the \fIstart\fR position to read that field\'s value
.IP "" 0 .IP "" 0
. .
.IP .IP
Those optional parameters can enclosed in square brackets and comma\-separated: Those optional parameters must be enclosed in square brackets and comma\-separated:
. .
.IP "\(bu" 4 .IP "\(bu" 4
\fIterminated by\fR \fIterminated by\fR

View File

@ -668,7 +668,7 @@ The `fixed` format command accepts the following clauses and options:
How many bytes to read from the *start* position to read that How many bytes to read from the *start* position to read that
field's value. Same format as *start*. field's value. Same format as *start*.
Those optional parameters can enclosed in square brackets and Those optional parameters must be enclosed in square brackets and
comma-separated: comma-separated:
- *terminated by* - *terminated by*

View File

@ -1743,7 +1743,7 @@ load database
(declare (ignore open close)) (declare (ignore open close))
(alexandria:alist-plist `(,opt1 ,@opts))))) (alexandria:alist-plist `(,opt1 ,@opts)))))
(defrule csv-field-options (? (or csv-field-option csv-field-option-list))) (defrule csv-field-options (? csv-field-option-list))
(defrule csv-raw-field-name (and (or #\_ (alpha-char-p character)) (defrule csv-raw-field-name (and (or #\_ (alpha-char-p character))
(* (or (alpha-char-p character) (* (or (alpha-char-p character)

View File

@ -19,13 +19,13 @@ LOAD ARCHIVE
( (
locId, locId,
country, country,
region null if blanks, region [ null if blanks ],
city null if blanks, city [ null if blanks ],
postalCode null if blanks, postalCode [ null if blanks ],
latitude, latitude,
longitude, longitude,
metroCode null if blanks, metroCode [ null if blanks ],
areaCode null if blanks areaCode [ null if blanks ]
) )
INTO postgresql:///ip4r?geolite.location INTO postgresql:///ip4r?geolite.location
( (

View File

@ -1,5 +1,5 @@
LOAD CSV LOAD CSV
FROM INLINE (id, number null if '\N', data) FROM INLINE (id, number [null if '\N'], data)
INTO postgresql:///pgloader?nullif INTO postgresql:///pgloader?nullif
BEFORE LOAD DO BEFORE LOAD DO

Binary file not shown.