MDB2 - 2 questions

From: Date: Tue, 20 Nov 2007 14:39:14 +0000
Subject: MDB2 - 2 questions
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28186@lists.php.net to get a copy of this message
Hi, first lets say thank you for your work on MDB2. I dont understand why "MDB2_FETCHMODE_ASSOC" dont give me the correct indexes. The column names are all modified to lower case letters. The same is in the Reverse-Class: $data=$db->tableInfo('tablename'); print_r($data); gives me also only the lower case letters of the column names. How can I get the real names??????? The second question is the missed "table-quoting". For example: you have a table called "xy2007-12-12" and you try to delete it via $db->mgDropTable($tablename); it would fail on mysql (for example). If you escape the tablename with "`" before and behind it will work. The same problem if you use tablenames like "group" or "user". greetings and thank you for an answer! mario

« previous php.pear.general (#28186) next »