Date: 02/20/01
- Next message: Daniel Bondurant: "RE: [phplib] freeze()"
- Previous message: Daniel Bondurant: "[phplib] freeze()"
- In reply to: Daniel Bondurant: "[phplib] freeze()"
- Next in thread: Daniel Bondurant: "RE: [phplib] freeze()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Make sure that you are using version 7.2c of phplib. Then fix the
ac_store() function in the file ct_sql.inc. This function will have
the code:
if ( $this->db->affected_rows() == 0
&& $this->db->query($squery)
&& $this->db->f(1) == 0
&& !$this->db->query($iquery)) {
In this fragment, change
&& $this->db->f(1) == 0
to
&& $this->db->next_record() && $this->db->f(0) == 0
MySql's used to count the rows affected by an update simply by counting
the rows matching the where clause--whether those rows were changed or
not. It now counts only the rows that actually changed. phplib 7.2c
changed ac_store() to accomodate this, but that fix needs fixing.
John Mandeville
On Tue, 20 Feb 2001 16:13:11 -0800, Daniel Bondurant wrote:
> +
> I recently upgraded to mysql 3.23.33, and now I have problems with
> Database error: Session: freeze() failed.
>
>
> the same page works with mysql 3.22.23. Same version of php4.
> I am calling page_close() at the end of the to write back session vars.
>
> has anyone run into this before, and know what would cause the change
> between mysql versions?
>
> thanks
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>
>
>
-- John Mandeville mandevil <email protected>--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: Daniel Bondurant: "RE: [phplib] freeze()"
- Previous message: Daniel Bondurant: "[phplib] freeze()"
- In reply to: Daniel Bondurant: "[phplib] freeze()"
- Next in thread: Daniel Bondurant: "RE: [phplib] freeze()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

