summaryrefslogtreecommitdiff
path: root/ext/odbc/php_odbc.h
diff options
context:
space:
mode:
authorKevin <kevin@php.net>2001-04-10 16:26:28 +0000
committerKevin <kevin@php.net>2001-04-10 16:26:28 +0000
commit3cd2c989d3c1f04e0e91ba917356ef725eb66eca (patch)
treeb86e2e65bfd0ee38f641d715f2992f95dd4eb137 /ext/odbc/php_odbc.h
parent86c2eaf74128e51cb1bfd87bb8267f83dfdcb293 (diff)
downloadphp-git-3cd2c989d3c1f04e0e91ba917356ef725eb66eca.tar.gz
Fixed compatibility issues in the ODBC extension for the Velocis Database server. Specifically, config.m4 was changed to use the client libraries instead of the serer libraries, and to look for the libs in the $RDSHOME/lin directory ass opposed to the $RDSHOME/bin directory. Makefile.in was changed to use the php_odbc.c file as the source for Velocis support. Other misc changes include a few #defines for some undefined data types and some #ifdefs for unsupported functions.
Diffstat (limited to 'ext/odbc/php_odbc.h')
-rw-r--r--ext/odbc/php_odbc.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/ext/odbc/php_odbc.h b/ext/odbc/php_odbc.h
index b9052685ff..b6cba7b4fb 100644
--- a/ext/odbc/php_odbc.h
+++ b/ext/odbc/php_odbc.h
@@ -14,6 +14,7 @@
+----------------------------------------------------------------------+
| Authors: Stig Sæther Bakken <ssb@guardian.no> |
| Andreas Karajannis <Andreas.Karajannis@gmd.de> |
+ | Kevin N. Shallow <kshallow@tampabay.rr.com> Velocis Support |
+----------------------------------------------------------------------+
*/
@@ -134,9 +135,18 @@ PHP_FUNCTION(solid_fetch_prev);
#define ODBC_TYPE "Velocis"
#define UNIX
-#define HAVE_SQL_EXTENDED_FETCH 1
+/*
+ * Extended Fetch in the Velocis ODBC API is incapable of returning long varchar (memo) fields.
+ * So the following line has been commented-out to accomadate. - KNS
+ *
+ * #define HAVE_SQL_EXTENDED_FETCH 1
+ */
#include <sql.h>
#include <sqlext.h>
+#define SQLINTEGER SDWORD
+#define SQLSMALLINT SWORD
+#define SQLUSMALLINT UWORD
+
#elif defined(HAVE_DBMAKER) /* DBMaker */