Re: [Sqlrelay-discussion] (no subject)
Brought to you by:
mused
|
From: David M. <dav...@fi...> - 2006-07-26 03:55:03
|
Oooh, that's not good. Looks like the commit/rollback methods are
trying to get the error, but there is no way to get an error at the
connection level, only the cursor level. The long term fix is to add
support for that. In the short term, replace the commit and rollback
code in sqlrelay.php with this:
// {{{ commit()
/**
* Commit the current transaction.
*/
function commit()
{
if (sqlrcon_commit($this->connection) == 1) {
return DB_OK;
} else {
# FIXME: need some way to get a rollback error
return $this->raiseError(DB_ERROR, null, null, null,
"commit failed");
}
}
// }}}
// {{{ rollback()
/**
* Roll back (undo) the current transaction.
*/
function rollback()
{
if (sqlrcon_rollback($this->connection) == 1) {
return DB_OK;
} else {
# FIXME: need some way to get a rollback error
return $this->raiseError(DB_ERROR, null, null, null,
"rollback failed");
}
}
// }}}
Give it a shot and see how it goes.
Dave
dav...@fi...
On Mon, 2006-07-24 at 12:42 -0500, jo...@in... wrote:
> Hello all,
> We have sqlrelay version .37 installed on our server and we are getting the
> following error message:
>
> Fatal error: Call to undefined function: sqlrcon_errormessage() in
> /usr/local/lib/php/DB/sqlrelay.php on line 601
>
> This function doesn't seem to be defined in
> sqlrelay-0.37/src/api/php/sql_relay.C where all the other similar php sqlrcon
> functions are defined. Is this a bug with sqlrelay? If so, what would be the
> fix?
>
>
> thanks
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Sqlrelay-discussion mailing list
> Sql...@li...
> https://lists.sourceforge.net/lists/listinfo/sqlrelay-discussion
>
|