RE: LiveUser strange issue!
| From: | Wright Zane A A1C 30 IS/DOMM | Date: | Fri, 24 Mar 2006 15:24:29 +0000 |
| Subject: | RE: LiveUser strange issue! | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-23438@lists.php.net to get a copy of this message | ||
Ok here ya go,
I ran that, and it added the value to the table, but still reported that
as an error. I think its honestly more a Notice than anything when I
look at it elsewhere, like under Microsofts KnowledgeBase it shows that
message popping up when you do a 'use' command to set the database
(don't know why it needs to do that...) but it worked, just reported it
as an error.
Is there any way I can suppress this msg?
One of the other weird things is that when I add a new right it shows
the same error when I dig into it, but it still follows through and the
error doesn't really surface to the top to stop everything.
-----Original Message-----
From: Lukas Smith [mailto:lsmith@php.net]
Sent: Friday, March 24, 2006 10:20 AM
To: Wright Zane A A1C 30 IS/DOMM
Cc: pear-general@lists.php.net
Subject: Re: LiveUser strange issue!
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