abies           Tue May  4 08:42:54 2004 EDT

  Modified files:              
    /php-src/ext/interbase      ibase_query.c 
  Log:
  ibase_query(): Be careful not to return true on error conditions
  
  
http://cvs.php.net/diff.php/php-src/ext/interbase/ibase_query.c?r1=1.1&r2=1.2&ty=u
Index: php-src/ext/interbase/ibase_query.c
diff -u php-src/ext/interbase/ibase_query.c:1.1 php-src/ext/interbase/ibase_query.c:1.2
--- php-src/ext/interbase/ibase_query.c:1.1     Mon Apr  5 09:22:33 2004
+++ php-src/ext/interbase/ibase_query.c Tue May  4 08:42:54 2004
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: ibase_query.c,v 1.1 2004/04/05 13:22:33 abies Exp $ */
+/* $Id: ibase_query.c,v 1.2 2004/05/04 12:42:54 abies Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -941,7 +941,7 @@
                        return SUCCESS;
 
                default:
-                       RETVAL_TRUE;
+                       RETVAL_FALSE;
        }
 
        /* allocate sqlda and output buffers */
@@ -1027,7 +1027,11 @@
                        if (affected_rows > 0) {
                                ib_query->trans->affected_rows = affected_rows;
                                RETVAL_LONG(affected_rows);
+                               break;
                        }
+                       
+               default:
+                       RETVAL_TRUE;
        }
 
        rv = SUCCESS;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to