X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Fclasses.lisp;h=a2ca8577727d6ac81a996514b935a30cb4b09639;hb=6154e9896e720bd3a39f8bdd9e034da1d431cdb0;hp=0babb5c57ecbcd9fa233668a22c421ce449daae1;hpb=a4449b6f1b9fb2471da255fc506bcad6f8feb220;p=clsql.git diff --git a/sql/classes.lisp b/sql/classes.lisp index 0babb5c..a2ca857 100644 --- a/sql/classes.lisp +++ b/sql/classes.lisp @@ -1,19 +1,20 @@ ;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*- -;;;; ====================================================================== -;;;; $Id: $ -;;;; ====================================================================== +;;;; ************************************************************************* ;;;; -;;;; Description ========================================================== -;;;; ====================================================================== +;;;; $Id$ ;;;; ;;;; Classes defining SQL expressions and methods for formatting the ;;;; appropriate SQL commands. ;;;; -;;;; ====================================================================== +;;;; This file is part of CLSQL. +;;;; +;;;; CLSQL users are granted the rights to distribute and use this software +;;;; as governed by the terms of the Lisp Lesser GNU Public License +;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL. +;;;; ************************************************************************* (in-package #:clsql-sys) - (defvar +empty-string+ "''") (defvar +null-string+ "NULL") @@ -201,6 +202,16 @@ (format *sql-stream* "~s" alias)))) t) +#| +(defmethod database-output-sql ((self duration) database) + (declare (ignore database)) + (format nil "'~a'" (duration-timestring self))) + +(defmethod database-output-sql ((self money) database) + (database-output-sql (slot-value self 'odcl::units) database)) +|# + + (defmethod output-sql-hash-key ((expr sql-ident-table) &optional (database *default-database*)) (declare (ignore database))