Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18660 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34925 invoked by uid 1010); 2 Sep 2005 20:26:37 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 34910 invoked from network); 2 Sep 2005 20:26:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Sep 2005 20:26:37 -0000 X-Host-Fingerprint: 195.197.172.115 gw01.mail.saunalahti.fi Linux 2.4/2.6 Received: from ([195.197.172.115:42909] helo=gw01.mail.saunalahti.fi) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 5F/93-15098-C75B8134 for ; Fri, 02 Sep 2005 16:26:36 -0400 Received: from nest.netphobia.fi (YZCLXVIII.dsl.saunalahti.fi [85.76.34.69]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 12785F102F; Fri, 2 Sep 2005 23:26:30 +0300 (EEST) Received: from nest.netphobia.fi (nest.netphobia.fi [127.0.0.1]) by nest.netphobia.fi (8.13.1/8.13.1) with ESMTP id j82KQXEx004612; Fri, 2 Sep 2005 23:26:33 +0300 Received: from localhost (jani@localhost) by nest.netphobia.fi (8.13.1/8.13.1/Submit) with ESMTP id j82KQXkg004609; Fri, 2 Sep 2005 23:26:33 +0300 X-Authentication-Warning: nest.netphobia.fi: jani owned process doing -bs Date: Fri, 2 Sep 2005 23:26:33 +0300 (EEST) Reply-To: Jani Taskinen To: Ilia Alshanetsky cc: PHPdev In-Reply-To: <4318A3F1.8080407@prohost.org> Message-ID: References: <010101c5afea$4227cd80$0100a8c0@pc07653> <43189886.4010500@prohost.org> <010901c5afed$0db28380$0100a8c0@pc07653> <4318A3F1.8080407@prohost.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [PHP-DEV] [PATCH] sqlite: retrieve SQL syntax errors From: sniper@iki.fi (Jani Taskinen) On Fri, 2 Sep 2005, Ilia Alshanetsky wrote: >> the "feature request": >> >> > $db = sqlite_open(":memory:"); >> sqlite_exec($db, "SELECT column"); >> var_dump(sqlite_error_string(sqlite_last_error($db))); >> ?> >> >> prints "SQL logic error or missing database", but you don't have a clue >> of what error is. >> with my patch, you can retrieve the error (in the additional variable) >> you get in the Warning message ("no such column: column"). > > Aha, I see... that is indeed useful. +1 Just commit it.. --Jani