summaryrefslogtreecommitdiff
path: root/ext/odbc/php_odbc.h
diff options
context:
space:
mode:
authorAndreas Karajannis <kara@php.net>2000-05-11 11:46:06 +0000
committerAndreas Karajannis <kara@php.net>2000-05-11 11:46:06 +0000
commitf4357f32545728e9ef0ce0e3cc27292a38a562e5 (patch)
treec963e9a8c63ed42024a61d3a3e7d5cc2fff67119 /ext/odbc/php_odbc.h
parentc32bba96448f7e4f4885cfd6045782c3b25fb255 (diff)
downloadphp-git-f4357f32545728e9ef0ce0e3cc27292a38a562e5.tar.gz
Forcing passing by reference for array in odbc_fetch_into()
Added function odbc_column_scale(), new alias odbc_column_precision for odbc_column_len Added better description in Prototypes for some functions
Diffstat (limited to 'ext/odbc/php_odbc.h')
-rw-r--r--ext/odbc/php_odbc.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/ext/odbc/php_odbc.h b/ext/odbc/php_odbc.h
index 9aad6a6de3..6308b4ce95 100644
--- a/ext/odbc/php_odbc.h
+++ b/ext/odbc/php_odbc.h
@@ -34,7 +34,7 @@
#define _PHP_ODBC_H
#if HAVE_UODBC
-
+#define ODBCVER 0x0250
/*#ifndef MSVC5
#define FAR
#endif
@@ -54,7 +54,9 @@
PHP_FUNCTION(solid_fetch_prev);
#define SQLSMALLINT SWORD
#define SQLUSMALLINT UWORD
+#ifndef SQL_SUCCEEDED
#define SQL_SUCCEEDED(rc) (((rc)&(~1))==0)
+#endif
#elif defined(HAVE_EMPRESS) /* Empress */
@@ -84,7 +86,9 @@ PHP_FUNCTION(solid_fetch_prev);
#define SQL_SO_DYNAMIC 0x00000004L
#define SQL_LEN_DATA_AT_EXEC_OFFSET (-100)
#define SQL_LEN_DATA_AT_EXEC(length) (-(length)+SQL_LEN_DATA_AT_EXEC_OFFSET)
+#ifndef SQL_SUCCEEDED
#define SQL_SUCCEEDED(rc) (((rc)&(~1))==0)
+#endif
#elif defined(HAVE_UNIXODBC) /* unixODBC library */
@@ -175,6 +179,7 @@ PHP_FUNCTION(odbc_execute);
PHP_FUNCTION(odbc_fetch_into);
PHP_FUNCTION(odbc_fetch_row);
PHP_FUNCTION(odbc_field_len);
+PHP_FUNCTION(odbc_field_scale);
PHP_FUNCTION(odbc_field_name);
PHP_FUNCTION(odbc_field_type);
PHP_FUNCTION(odbc_field_num);
@@ -187,10 +192,6 @@ PHP_FUNCTION(odbc_result_all);
PHP_FUNCTION(odbc_rollback);
PHP_FUNCTION(odbc_binmode);
PHP_FUNCTION(odbc_longreadlen);
-/*
- * PHP_FUNCTION(odbc_bind_param);
- * PHP_FUNCTION(odbc_define);
-*/
PHP_FUNCTION(odbc_tables);
PHP_FUNCTION(odbc_columns);
#if !defined(HAVE_DBMAKER) && !defined(HAVE_SOLID) /* not supported now */