X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=db-mysql%2Fmysql-objects.lisp;fp=db-mysql%2Fmysql-objects.lisp;h=b3baf30c79a45dafdaa174f285118fbabde5b1d1;hb=29e203446b2275fd2353642510cd4b2903d07d1c;hp=93a802f762ca3be7cefaa5229e0e894097373610;hpb=f103c1a5416d2f22820d66020e4f9c18c766d894;p=clsql.git diff --git a/db-mysql/mysql-objects.lisp b/db-mysql/mysql-objects.lisp index 93a802f..b3baf30 100644 --- a/db-mysql/mysql-objects.lisp +++ b/db-mysql/mysql-objects.lisp @@ -13,25 +13,15 @@ (in-package #:clsql-mysql) -(defmethod database-get-type-specifier ((type (eql 'wall-time)) args database +(defmethod database-get-type-specifier ((type symbol) args database (db-type (eql :mysql))) - (declare (ignore args database)) - "DATETIME") - -(defmethod database-get-type-specifier ((type (eql 'smallint)) args database - (db-type (eql :mysql))) - (declare (ignore args database)) - "SMALLINT") - -(defmethod database-get-type-specifier ((type (eql 'mediumint)) args database - (db-type (eql :mysql))) - (declare (ignore args database)) - "MEDIUMINT") - -(defmethod database-get-type-specifier ((type (eql 'tinyint)) args database - (db-type (eql :mysql))) - (declare (ignore args database)) - "TINYINT") + (declare (ignore args database db-type)) + (case type + (wall-time "DATETIME") + (tinyint "TINYINT") + (smallint "SMALLINT") + (mediumint "MEDIUMINT") + (t (call-next-method)))) (defmethod read-sql-value (val (type (eql 'boolean)) database (db-type (eql :mysql)))