RE: [PEAR] MDB2 - 2 questions
| From: | Mark Steudel | Date: | Tue, 20 Nov 2007 14:57:50 +0000 |
| Subject: | RE: [PEAR] MDB2 - 2 questions | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-28188@lists.php.net to get a copy of this message | ||
I don't know the answer to your second question but I think your problem
with table names is the portability options, check out this page from the
manual:
http://pear.php.net/manual/en/package.database.mdb2.intro-portability.php
MS
-----Original Message-----
From: Mario Gzuk [mailto:mariogzuk@technikz.de]
Sent: Tuesday, November 20, 2007 4:39 PM
To: PEAR general list
Subject: [PEAR] MDB2 - 2 questions
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
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php