Re: LiveUser strange issue!
| From: | Lukas Smith | Date: | Fri, 24 Mar 2006 15:19:34 +0000 |
| Subject: | Re: LiveUser strange issue! | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23437@lists.php.net to get a copy of this message | ||
Wright Zane A A1C 30 IS/DOMM wrote:
Ok, In PEAR/DB/mssql.php line 530 it returns an error to the $result, which says... INSERT INTO liveuser_users_seq (vapor) values (0) [nativecode=0 - changed database context to UNICORN]so what is that error about? this is the problem .. why cant it do the insert?
At that point it executes the popErrorHandling() which I don't know what the crap that is... then from there it executes the createSequence() function which starts the creation of the table, which returns the real error.pushErrorHandling()/popErrorHandling() just handle the supression of errors .. the code there is badly written .. it should really just only supress errors that map to the error code DB_ERROR_NOSUCHTABLE however that is not the cause if your issue .. the cause if your issue is that the initial insert fails eventhough you say the table exists and is accessable .. what if you just write a script like: $db =& DB($dsn, $options); var_dump($db->query('INSERT INTO liveuser_users_seq (vapor) values (0)')); regards, Lukas