Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0b4

Bug #14302 SQL error produces SQLite error (warning)
Submitted: 2008-07-07 11:10 UTC
From: estigy Assigned: quipo
Status: Closed Package: MDB2_Driver_sqlite (version 1.4.1)
PHP Version: 5.2.0 OS:
Roadmaps: (Not assigned)    
Comments Add Comment Add patch

Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem : 13 - 10 = ?

 [2008-07-07 11:10 UTC] estigy (G√ľnther Stadler)
Description: ------------ When a query is run that produces an SQL error, an error message is shown instead of query() returning an PEAR_Error object Test script: --------------- <?php require 'MDB2.php'; $db = MDB2::singleton('sqlite://:memory:'); $res = $db->query('do some unknown SQL-code'); ?> Expected result: ---------------- PEAR_Error in $res Actual result: -------------- Warning: sqlite_last_error() expects parameter 1 to be resource, integer given in /usr/share/php/MDB2/Driver/sqlite.php on line 532


 [2008-08-25 10:21 UTC] quipo (Lorenzo Alberton)
Actually this was a *connection* error not being returned. Fixed in CVS.