summaryrefslogtreecommitdiff
path: root/ext/fbsql/php_fbsql.c
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2002-03-19 18:33:05 +0000
committerFrank M. Kromann <fmk@php.net>2002-03-19 18:33:05 +0000
commit5280936895b578107038a668b9654a92558f8bed (patch)
treed3852c0bf421ea0a69087f501ea2934243124ee1 /ext/fbsql/php_fbsql.c
parent14a3911866c0f69f4e5eafc8f7d320878d1b995c (diff)
downloadphp-git-5280936895b578107038a668b9654a92558f8bed.tar.gz
Adding support for TinyInteger and LongInteger database types
Diffstat (limited to 'ext/fbsql/php_fbsql.c')
-rw-r--r--ext/fbsql/php_fbsql.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/ext/fbsql/php_fbsql.c b/ext/fbsql/php_fbsql.c
index 6b0a4c5693..4d42accf3d 100644
--- a/ext/fbsql/php_fbsql.c
+++ b/ext/fbsql/php_fbsql.c
@@ -648,7 +648,6 @@ int phpfbFetchRow(PHPFBResult* result, unsigned int row)
rawData = fbcdcFetch(result->link->connection, result->batchSize, result->fetchHandle);
if (!fbcrhAddBatch(result->rowHandler, rawData)) result->rowCount = fbcrhRowCount(result->rowHandler);
}
- return 0;
}
@@ -2262,6 +2261,24 @@ void phpfbColumnAsString (PHPFBResult* result, int column, void* data , int* len
}
break;
+ case FB_TinyInteger:
+ {
+ short int v = *((short int*)data);
+ char b[128];
+ sprintf(b, "%d", v);
+ phpfbestrdup(b, length, value);
+ }
+ break;
+
+ case FB_LongInteger:
+ {
+ long v = *((long*)data);
+ char b[128];
+ sprintf(b, "%li", v);
+ phpfbestrdup(b, length, value);
+ }
+ break;
+
case FB_SmallInteger:
{
short v = *((short*)data);