1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 16:38:25 +02:00

MFH: Hack to fix crash caused by FBCAccess not returning errors when creating an index that exists in the database.

This commit is contained in:
Frank M. Kromann
2005-01-27 20:21:32 +00:00
parent bdd787626d
commit 4acc981ac4
+6 -3
View File
@@ -1895,9 +1895,12 @@ static void phpfbQuery(INTERNAL_FUNCTION_PARAMETERS, char* sql, PHPFBLink* link)
md = meta;
tp = fbcmdStatementType(md);
if ((tp[0] == 'C') || (tp[0] == 'R'))
{
if (tp == NULL) {
fbcmdRelease(meta);
ZVAL_BOOL(return_value, 0)
}
else if ((tp[0] == 'C') || (tp[0] == 'R'))
{
if (sR == 1 && md) fbcmdRelease(md);
ZVAL_BOOL(return_value, 1)
}