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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user