X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=db-odbc%2Fodbc-ff-interface.lisp;h=ba3362e9b3e2c49690ad570f30605ece7bdc5a52;hb=f3c9127216b9fbea4f49ec6f9316929da64bf177;hp=4ab8627df91e4ef3a9d5eadde7d1537faa376087;hpb=947d861d8857ce104a5c61ba993c3cf468a730d8;p=clsql.git diff --git a/db-odbc/odbc-ff-interface.lisp b/db-odbc/odbc-ff-interface.lisp index 4ab8627..ba3362e 100644 --- a/db-odbc/odbc-ff-interface.lisp +++ b/db-odbc/odbc-ff-interface.lisp @@ -6,7 +6,7 @@ ;;;; Purpose: Function definitions for UFFI interface to ODBC ;;;; Author: Kevin M. Rosenberg ;;;; -;;;; $Id: odbc-package.lisp 7061 2003-09-07 06:34:45Z kevin $ +;;;; $Id$ ;;;; ;;;; This file, part of CLSQL, is Copyright (c) 2004 by Kevin M. Rosenberg ;;;; and Copyright (C) Paul Meurer 1999 - 2001. All rights reserved. @@ -21,7 +21,7 @@ (def-foreign-type sql-handle :pointer-void) (def-foreign-type sql-handle-ptr '(* sql-handle)) (def-foreign-type string-ptr '(* :unsigned-char)) -(def-type long-ptr-type '(* :int)) +(def-type long-ptr-type '(* #.$ODBC-LONG-TYPE)) (def-function "SQLAllocEnv" @@ -152,7 +152,7 @@ (cbColNameMax :short) ; SWORD cbColNameMax (*pcbColName (* :short)) ; SWORD FAR *pcbColName (*pfSqlType (* :short)) ; SWORD FAR *pfSqlType - (*pcbColDef (* :unsigned-int)) ; UDWORD FAR *pcbColDef + (*pcbColDef (* #.$ODBC-ULONG-TYPE)) ; UDWORD FAR *pcbColDef (*pibScale (* :short)) ; SWORD FAR *pibScale (*pfNullable (* :short)) ; SWORD FAR *pfNullable ) @@ -354,7 +354,7 @@ (*value :pointer-void) (szLength :int)) :module "odbc" - :returning :int) + :returning :short) (def-function "SQLTables" ((hstmt :pointer-void)