From: Kevin M. Rosenberg Date: Tue, 6 May 2003 06:34:05 +0000 (+0000) Subject: r4838: Auto commit for Debian build X-Git-Tag: v2006ac.2~188 X-Git-Url: http://git.kpe.io/?a=commitdiff_plain;h=130f3d288e006757b1a35bdef56763b9dfc59cd7;p=umlisp.git r4838: Auto commit for Debian build --- diff --git a/sql-create.lisp b/sql-create.lisp index 1868e12..8be060d 100644 --- a/sql-create.lisp +++ b/sql-create.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2000 ;;;; -;;;; $Id: sql-create.lisp,v 1.16 2003/05/06 06:09:29 kevin Exp $ +;;;; $Id: sql-create.lisp,v 1.17 2003/05/06 06:34:05 kevin Exp $ ;;;; ;;;; This file, part of UMLisp, is ;;;; Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D. @@ -227,11 +227,13 @@ This is much faster that using create-umls-db-insert." (umls-pathname (umls-file-fil file) extension) (umls-file-table file))) (defun col-value (col value) - (if value - (if (eq (umls-col-datatype col) 'sql-u) - (write-to-string (parse-ui value "")) - (escape-backslashes value)) - "")) + (cond + ((null value) + "") + ((eq (umls-col-datatype col) 'sql-u) + (write-to-string (parse-ui value))) + (t + (escape-backslashes value)))) (defun umls-translate (file line strm) "Translate a single line for sql output"