;;;; Original code by Pierre R. Mai
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: mysql-api.lisp,v 1.1 2002/09/30 10:19:23 kevin Exp $
+;;;; $Id: mysql-api.lisp,v 1.3 2003/06/08 12:48:55 kevin Exp $
;;;;
;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;; and Copyright (c) 1999-2001 by Pierre R. Mai
;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
;;;; *************************************************************************
-(declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0)))
+(eval-when (:compile-toplevel)
+ (declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0))))
-(in-package :mysql)
+(in-package #:mysql)
;;;; Modifications from original code
;;;; - Updated C-structures to conform to structures in MySQL 3.23.46
(:var-string 253)
(:string 254)))
+#-(or win32 mswindows)
(uffi:def-struct mysql-field
(name (* :char))
(table (* :char))
(flags :unsigned-int)
(decimals :unsigned-int))
+;; structure changed in mysql 4.0.12, win32
+#+(or win32 mswindows)
+(uffi:def-struct mysql-field
+ (name (* :char))
+ (table (* :char))
+ (org_table (* :char))
+ (db (* :char))
+ (def (* :char))
+ (length :unsigned-int)
+ (max-length :unsigned-int)
+ (flags :unsigned-int)
+ (decimals :unsigned-int)
+ (type mysql-field-types))
+
;;; MYSQL-ROWS
(uffi:def-array-pointer mysql-row (* :unsigned-char))