(format nil " (~d)" length)
"")))
((:postgresql :postgresql-socket)
- ;; FIXME: incorrect syntax
+ ;; FIXME: incorrect syntax for postgresql?
(if (integerp length)
(format nil "substr((~A)::text,1,~D)" colname length)
colname))
(incf translated-lines)))
(dolist (input-ufile input-ufiles)
(with-umls-ufile (line input-ufile)
- (incf input-lines)
- (when (> input-lines translated-lines)
- (throw 'done-counting 'incomplete)))))
+ (incf input-lines)
+ (when (> input-lines translated-lines)
+ (throw 'done-counting 'incomplete)))))
(cond
- ((eql input-lines 0)
- (error "Input lines is 0")
- nil)
((< input-lines translated-lines)
(format t "Translated file ~A incomplete, deleting...~%" output-path)
(delete-file output-path)
((eql input-lines translated-lines)
(format t "Translated file ~A already exists: skipping...~%" output-path)
t)
+ ((eql input-lines 0)
+ (warn "The number of input lines is 0 for output file ~A." output-path)
+ nil)
((> translated-lines input-lines)
(error "Shouldn't happen. Translated lines of ~A is ~D, greater than input lines ~D"
output-path translated-lines input-lines)