X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Fmetaclasses.lisp;h=5af1a64f03719f4abea7e82e1d9ab90e9fd6ceb8;hb=814ef0649edf23f0136d5cad2d7738ae72e79871;hp=2a0b4b9b2c835c30f194c46674b4c2fe795e65b0;hpb=86e9b31ba3b0348f2cc5c816e80d9109e555be94;p=clsql.git diff --git a/sql/metaclasses.lisp b/sql/metaclasses.lisp index 2a0b4b9..5af1a64 100644 --- a/sql/metaclasses.lisp +++ b/sql/metaclasses.lisp @@ -82,15 +82,6 @@ ((stringp arg) (sql-escape arg)))) -(defun column-name-from-arg (arg) - (cond ((symbolp arg) - arg) - ((typep arg 'sql-ident) - (slot-value arg 'name)) - ((stringp arg) - (intern (symbol-name-default-case arg))))) - - (defun remove-keyword-arg (arglist akey) (let ((mylist arglist) (newlist ())) @@ -466,12 +457,9 @@ implementations." ;; the column slot is filled in with the slot-name, but transformed ;; to be sql safe, - to _ and such. (setf (slot-value esd 'column) - (column-name-from-arg - (if (slot-boundp dsd 'column) - (delistify-dsd (view-class-slot-column dsd)) - (column-name-from-arg - (sql-escape (slot-definition-name dsd)))))) - + (if (slot-boundp dsd 'column) + (delistify-dsd (view-class-slot-column dsd)) + (slot-definition-name dsd))) (setf (slot-value esd 'db-type) (when (slot-boundp dsd 'db-type) (delistify-dsd @@ -534,8 +522,7 @@ implementations." type-predicate))) (setf (slot-value esd 'column) - (column-name-from-arg - (sql-escape (slot-definition-name dsd)))) + (slot-definition-name dsd)) (setf (slot-value esd 'db-info) nil) (setf (slot-value esd 'db-kind) :virtual)