summaryrefslogtreecommitdiff
path: root/ext/odbc/php_odbc.c
diff options
context:
space:
mode:
authorDan Kalowsky <kalowsky@php.net>2000-09-29 19:03:23 +0000
committerDan Kalowsky <kalowsky@php.net>2000-09-29 19:03:23 +0000
commitca1b12c5a1376d69fe2127167ca28b79245a38ee (patch)
treeca882e71e526178543ec3798171b631c9d6deed3 /ext/odbc/php_odbc.c
parent4b89b67d1cfd4e3dc28320335d02b880ee7bf4c8 (diff)
downloadphp-git-ca1b12c5a1376d69fe2127167ca28b79245a38ee.tar.gz
corrected lines for Solid 2.3 systems after some advice from users, please test...
Diffstat (limited to 'ext/odbc/php_odbc.c')
-rw-r--r--ext/odbc/php_odbc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c
index bb0a0184bd..05f7cf003d 100644
--- a/ext/odbc/php_odbc.c
+++ b/ext/odbc/php_odbc.c
@@ -607,7 +607,17 @@ static int _close_pconn_with_id(list_entry *le, int *id)
void odbc_column_lengths(INTERNAL_FUNCTION_PARAMETERS, int type)
{
odbc_result *result;
+#if defined HAVE_SOLID
+ /* this seems to be necessary for Solid2.3 tested by tammy@synchronis.com
+ * Solid 2.3 does not seem to declare a SQLINTEGER, but it does declare
+ * a SQL_INTEGER which does not work (despite being the same type as a
+ * SDWORD. It is unknown if this is the same behavior for Solid3.0.
+ * Solid 3.5 does not have this problem.
+ */
+ SDWORD len;
+#else
SQLINTEGER len;
+#endif
pval **pv_res, **pv_num;
if (zend_get_parameters_ex(2, &pv_res, &pv_num) == FAILURE) {