note 118722 added to ref.pdo-odbc

From: Date: Tue, 26 Jan 2016 11:03:04 +0000
Subject: note 118722 added to ref.pdo-odbc
Groups: php.notes 
Request: Send a blank email to php-notes+get-204763@lists.php.net to get a copy of this message
I just spent a couple of hours trying to track down the Exception "Could not find driver". This was despite having ODBC and PDO_ODBC installed, and all of the configuration seemed to be correct. Turned out the problem was that I used ODBC in upper-case in the dsn. As soon as I changed the dns to "odbc:database" it worked. As this code used to work a few months ago, this sudden case-sensitivity threw me for a loop. So in case you get this error, check the casing first. ---- Server IP: 72.52.91.14 Probable Submitter: 85.221.66.50 ---- Manual Page -- http://php.net/manual/en/ref.pdo-odbc.php Edit -- https://master.php.net/note/edit/118722 Del: integrated -- https://master.php.net/note/delete/118722/integrated Del: useless -- https://master.php.net/note/delete/118722/useless Del: bad code -- https://master.php.net/note/delete/118722/bad+code Del: spam -- https://master.php.net/note/delete/118722/spam Del: non-english -- https://master.php.net/note/delete/118722/non-english Del: in docs -- https://master.php.net/note/delete/118722/in+docs Del: other reasons-- https://master.php.net/note/delete/118722 Reject -- https://master.php.net/note/reject/118722 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#204763) next »