1 ;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
5 ;;;; Name: mysql-objects.lisp
6 ;;;; Purpose: CLSQL Object layer for MySQL
9 ;;;; $Id: mysql-sql.lisp 9403 2004-05-19 23:46:45Z kevin $
11 ;;;; CLSQL users are granted the rights to distribute and use this software
12 ;;;; as governed by the terms of the Lisp Lesser GNU Public License
13 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
14 ;;;; *************************************************************************
16 (in-package #:clsql-mysql)
18 (defmethod database-get-type-specifier ((type (eql 'wall-time)) args (database mysql-database))
19 (declare (ignore args))
22 (defmethod database-output-sql-as-type ((type (eql 'boolean)) val (database mysql-database))
25 (defmethod read-sql-value (val (type (eql 'boolean)) (database mysql-database))
27 (string (if (string= "0" val) nil t))
28 (integer (if (zerop val) nil t))))