Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43064 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85316 invoked from network); 16 Feb 2009 10:23:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Feb 2009 10:23:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 213.123.26.185 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 213.123.26.185 c2beaomr07.btconnect.com Received: from [213.123.26.185] ([213.123.26.185:6213] helo=c2beaomr07.btconnect.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/4E-28481-DAE39994 for ; Mon, 16 Feb 2009 05:23:42 -0500 Received: from [10.0.0.150] (host81-138-11-136.in-addr.btopenworld.com [81.138.11.136]) by c2beaomr07.btconnect.com (MOS 3.8.6-GA) with ESMTP id BWW38662; Mon, 16 Feb 2009 10:23:37 GMT Message-ID: <49993EA6.7080907@lsces.co.uk> Date: Mon, 16 Feb 2009 10:23:34 +0000 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.8.1.19) Gecko/20081216 SeaMonkey/1.1.14 MIME-Version: 1.0 To: PHP internals References: <49985F97.9000706@lsces.co.uk> <1234748738.3298.9.camel@pena> In-Reply-To: <1234748738.3298.9.camel@pena> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Junkmail-Status: score=10/50, host=c2beaomr07.btconnect.com X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A0B0205.49993EAA.020B,ss=1,fgs=0, ip=10.0.0.150, so=2007-10-30 19:00:17, dmn=5.7.1/2008-09-02 X-Junkmail-IWF: false Subject: Re: [PHP-DEV] Tidying up PDO tests From: lester@lsces.co.uk (Lester Caine) Felipe Pena wrote: > Hi Lester, > > Em Dom, 2009-02-15 às 18:31 +0000, Lester Caine escreveu: >> I've been looking into the failures on >> http://gcov.php.net/viewer.php?version=PHP_5_3&func=tests >> with relation to the firebird pdo driver, and the first problem that >> needs to be addressed is the SQL differences in order for the different >> drivers to work. I'm seeing specific fixes for some drivers in the >> tests, but how should the fact that PDO does not handle the different >> SQL requirements be addressed in these generic tests? >> >> Obviously the first problem is identifying driver bugs from bugs in the >> tests themselves, in particular the upper/lower case 'defaults', and the >> use of non standard field definitions. >> > > I'm looking at this. I'll check each test and will try to be fixing the > bugs as soon as possible. Please, report whatever bug that you found. :) The OCI driver is failing a number of the same tests as Firebird. Both work in a similar way internally which is why I believe that the tests need sorting before trying to fix non existent bugs? Since I don't use oci, making generic changes to the tests is a little difficult for me. I have now found the switch to force upper case returns from PDO, but 'natural' returns should at least follow the current SQL standards, which seems not to be the case. I'm being pressed to at least look at the Firebird PDO driver, but it's method of working introduces another level of processing inside ADOdb - on which all my work is based - so I only see disadvantages in enabling it. All the projects I'm involved with switch cleanly between different databases. YES things could be faster if we selected just one database, but customers seem to have this idea that THEIR favourite database is best. PDO is not a stepping stone to database abstraction, it's introducing it's own restrictions to clean cross database working, and messing up the current clean paths :( -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/lsces/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php