;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
-;;;; Name: conditions.cl
+;;;; Name: conditions.lisp
;;;; Purpose: Error conditions for high-level SQL interface
;;;; Programmers: Kevin M. Rosenberg based on
;;;; Original code by Pierre R. Mai
;;;;
;;;; $Id$
;;;;
-;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
+;;;; This file, part of CLSQL, is Copyright (c) 2002-2004 by Kevin M. Rosenberg
;;;; and Copyright (c) 1999-2001 by Pierre R. Mai
;;;;
;;;; CLSQL users are granted the rights to distribute and use this software
;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
;;;; *************************************************************************
-(declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0)))
-(in-package :clsql-base-sys)
+(in-package #:clsql-base-sys)
;;; Conditions
(define-condition clsql-condition ()
'clsql-nodb-error
:database database))
-
-;; for USQL support
+(defun signal-no-database-error ()
+ (cerror "Ignore this error and return nil."
+ 'clsql-nodb-error))
(define-condition clsql-type-error (clsql-error clsql-condition)
((slotname :initarg :slotname
:reader clsql-sql-syntax-error-reason))
(:report (lambda (c stream)
(format stream "Invalid SQL syntax: ~A"
- (clsql-sql-syntax-error-reason c)))))
\ No newline at end of file
+ (clsql-sql-syntax-error-reason c)))))