X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=db-mysql%2Fmysql-api.lisp;h=cff8da4a98dd9a175d8c6eac7c6ab2689f30b027;hb=f890314907bc4add4b0f24ad6883da9838a056b7;hp=c14cb7d0f2c5afe321d30370fc723b5de46bdd7c;hpb=20e845656e846b8f48c6243c9ef7211a434a034f;p=clsql.git diff --git a/db-mysql/mysql-api.lisp b/db-mysql/mysql-api.lisp index c14cb7d..cff8da4 100644 --- a/db-mysql/mysql-api.lisp +++ b/db-mysql/mysql-api.lisp @@ -2,13 +2,13 @@ ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; -;;;; Name: mysql.cl +;;;; Name: mysql-api.lisp ;;;; Purpose: Low-level MySQL interface using UFFI ;;;; Programmers: Kevin M. Rosenberg based on ;;;; Original code by Pierre R. Mai ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: mysql-api.lisp,v 1.3 2003/06/08 12:48:55 kevin Exp $ +;;;; $Id: mysql-api.lisp,v 1.6 2003/07/21 01:45:45 kevin Exp $ ;;;; ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; and Copyright (c) 1999-2001 by Pierre R. Mai @@ -18,9 +18,6 @@ ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL. ;;;; ************************************************************************* -(eval-when (:compile-toplevel) - (declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0)))) - (in-package #:mysql) ;;;; Modifications from original code @@ -108,8 +105,12 @@ (:blob 252) (:var-string 253) (:string 254))) - -#-(or win32 mswindows) + +#-(or mysql-client-v3 mysql-client-v4) +(eval-when (:compile-toplevel :load-toplevel :execute) + (pushnew :mysql-client-v3 cl:*features*)) + +#+mysql-client-v3 (uffi:def-struct mysql-field (name (* :char)) (table (* :char)) @@ -120,8 +121,8 @@ (flags :unsigned-int) (decimals :unsigned-int)) -;; structure changed in mysql 4.0.12, win32 -#+(or win32 mswindows) +;; structure changed in mysql 4 client +#+mysql-client-v4 (uffi:def-struct mysql-field (name (* :char)) (table (* :char))