X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=db-mysql%2Fmysql-sql.lisp;h=0038da9cc364bad7a0959984521d5b78fcb446f0;hp=857bcd5ec985c78dc863bc8cd50d5432d394ee79;hb=30186614582039bdc3d3f86bc5165ef300c5d3e0;hpb=1a92fc6c8f8a8d6a91af498e04bdbaf8f5b1faa7 diff --git a/db-mysql/mysql-sql.lisp b/db-mysql/mysql-sql.lisp index 857bcd5..0038da9 100644 --- a/db-mysql/mysql-sql.lisp +++ b/db-mysql/mysql-sql.lisp @@ -404,8 +404,10 @@ (unless (find col results :test #'string-equal) (push col results))))) -(defmethod database-list-attributes ((table string) (database mysql-database) - &key (owner nil)) +(defmethod database-list-attributes ((table clsql-sys::%database-identifier) + (database mysql-database) + &key (owner nil) + &aux (table (unescaped-database-identifier table))) (declare (ignore owner)) (mapcar #'car (database-query @@ -413,9 +415,12 @@ table database)) database nil nil))) -(defmethod database-attribute-type (attribute (table string) +(defmethod database-attribute-type ((attribute clsql-sys::%database-identifier) + (table clsql-sys::%database-identifier) (database mysql-database) - &key (owner nil)) + &key (owner nil) + &aux (table (unescaped-database-identifier table)) + (attribute (unescaped-database-identifier attribute))) (declare (ignore owner)) (let ((row (car (database-query (format nil