X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=db-mysql%2Fmysql-objects.lisp;h=a118f479f2a12949a516cbe4f2ec9cbb0f6e535a;hb=31507a81fff1da3460625fbc07107de931907a8e;hp=ae24cac37abd2910832c2cf1c528213f145e98ad;hpb=606f6b3eb642523512d12927ff83120b688e8bf9;p=clsql.git diff --git a/db-mysql/mysql-objects.lisp b/db-mysql/mysql-objects.lisp index ae24cac..a118f47 100644 --- a/db-mysql/mysql-objects.lisp +++ b/db-mysql/mysql-objects.lisp @@ -6,7 +6,7 @@ ;;;; Purpose: CLSQL Object layer for MySQL ;;;; Created: May 2004 ;;;; -;;;; $Id: mysql-sql.lisp 9403 2004-05-19 23:46:45Z kevin $ +;;;; $Id$ ;;;; ;;;; CLSQL users are granted the rights to distribute and use this software ;;;; as governed by the terms of the Lisp Lesser GNU Public License @@ -15,14 +15,19 @@ (in-package #:clsql-mysql) -(defmethod database-get-type-specifier ((type (eql 'wall-time)) args (database mysql-database)) - (declare (ignore args)) +(defmethod database-get-type-specifier ((type (eql 'wall-time)) args database + (db-type (eql :mysql))) + (declare (ignore args database)) "DATETIME") -(defmethod database-output-sql-as-type ((type (eql 'boolean)) val (database mysql-database)) +(defmethod database-output-sql-as-type ((type (eql 'boolean)) val database + (db-type (eql :mysql))) + (declare (ignore database)) (if val 1 0)) -(defmethod read-sql-value (val (type (eql 'boolean)) (database mysql-database)) +(defmethod read-sql-value (val (type (eql 'boolean)) database + (db-type (eql :mysql))) + (declare (ignore database)) (etypecase val (string (if (string= "0" val) nil t)) (integer (if (zerop val) nil t))))