MDB2 listTableIndexes()
| From: | Jeff Loiselle | Date: | Fri, 08 Sep 2006 17:56:56 +0000 |
| Subject: | MDB2 listTableIndexes() | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25089@lists.php.net to get a copy of this message | ||
Lukas,
I thought I have used this on the CLI before. I don't know what's
going on today. Here's another:
$dbh = MDB2::connect($dsn);
if (PEAR::isError($dbh)) {
die($dbh->getUserInfo());} $sql = 'SELECT * FROM PEOPLE'; $res = $dbh->query($sql); if (PEAR::isError($res)) { die($res->getUserInfo()); } _doQuery: [Error message: Could not execute statement] [Last query: SELECT * FROM PEOPLE] [Native code: 3116] [Native message: ORA-03116: invalid buffer length passed to a conversion routine ] Funky. On 9/8/06, Lukas Kahwe Smith <lsmith@php.net> wrote:
Jeff Loiselle wrote: Hello. Any ideas what this could be? It only gives an error when run from the CLI. It works fine on the web. Is there something wrong with my environment? $dbh = MDB2::connect($dsn); $dbh->loadModule('Manager'); $indexes = $dbh->manager->listTableIndexes('people'); print_r($indexes); do other queries work on the CLI? i have run into issues like that .. for example a client was unable to get oracle running reliable via the CLI on windows. i still do not know what the problem is exactly. keep in mind that the environment variables, user permissions will be entirely different on the CLI. regards, Lukas-- --- Jeff Loiselle Web Developer The NewNewMedia Group http://www.newnewmedia.com -- --- Jeff Loiselle Web Developer The NewNewMedia Group http://www.newnewmedia.com