X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=db-sqlite3%2Fsqlite3-api.lisp;h=942246e57a02ae40b34e1c41d1f20f6396b0ed89;hb=937a3d6ab1f7d730c741b213f60ed5f5f4cf2021;hp=196434d26b3574d0fcd8bf1b01da2b239b975551;hpb=e567409d9fff3f7231c2a0bb69b345e19de2b246;p=clsql.git diff --git a/db-sqlite3/sqlite3-api.lisp b/db-sqlite3/sqlite3-api.lisp index 196434d..942246e 100644 --- a/db-sqlite3/sqlite3-api.lisp +++ b/db-sqlite3/sqlite3-api.lisp @@ -7,8 +7,6 @@ ;;;; Authors: Aurelio Bignoli ;;;; Created: Oct 2004 ;;;; -;;;; $Id$ -;;;; ;;;; This file, part of CLSQL, is Copyright (c) 2004 by Aurelio Bignoli ;;;; ;;;; CLSQL users are granted the rights to distribute and use this software @@ -291,7 +289,10 @@ ;;;; ;;;; wrapper functions. ;;;; -(defun sqlite3-open (db-name &optional (mode 0)) +(defun sqlite3-open (db &optional (mode 0) + &aux (db-name (etypecase db + (pathname (namestring db)) + (string db)))) (declare (ignore mode) (type string db-name)) (let ((dbp (allocate-foreign-object 'sqlite3-db))) (declare (type sqlite3-db-ptr-type dbp))