Subject | Re: Transactions with prepared statements CRASH. |
---|---|
Author | paulruizendaal |
Post date | 2006-11-07T17:49:19Z |
--- In firebird-php@yahoogroups.com, "Fabio Gomes" <fabioxgn@...> wrote:
http://www.janus-software.com/fbmanual/manual.php?book=php&topic=18
The original form starts a default transaction on connection $db, and
sets modifiers for another connection -- which isn't given and hence
the modifiers are ignored.
Still doesn't explain a crash, though.
Paul
>You are absolutely right:
> Sorry if what i am saying is stupid but,
>
> the syntax for the ibase_tras is: *ibase_trans* ( [int trans_args [,
> resource link_identifier]] )
>
> Aren´t you passing the parameters in the inverse order?
>
> you are using: $trans = ibase_trans($db,
> IBASE_WRITE|IBASE_CONCURRENCY|IBASE_WAIT);
>
> shouldn´t it be: $trans =
> ibase_trans(IBASE_WRITE|IBASE_CONCURRENCY|IBASE_WAIT, $db);?
http://www.janus-software.com/fbmanual/manual.php?book=php&topic=18
The original form starts a default transaction on connection $db, and
sets modifiers for another connection -- which isn't given and hence
the modifiers are ignored.
Still doesn't explain a crash, though.
Paul