Mailinglisten-Archive |
Hi!
Heiko Schubert wrote:
>
> Hallo Mitleser,
> ...
> page_open( array( "sess" => "Example_Session"));
> .....
> Database error: Invalid SQL: insert into active_sessions ( sid, name,
> val, changed ) values ('33e031e3ea294c007e140c7ad45d4bda', 'sid',
> 'c2lkOiR0aGlzLT5pbiA9ICcnOyAkdGhpcy0+cHQgPSBhcnJheSgpOyA=', '20010308122153')
> MySQL Error: 1062 (Duplicate entry 'sid-33e031e3ea294c007e140c7ad45d4bda'
> for key 1)
> Session halted.
>
Dieses Problem wurde, soweit ich das mitbekommen habe, schon in der
PHPlib Mailingliste des öfteren besprochen.
In einer Mail wurde folgende Lösung geboten:
There appears to be a problem in version 7.2c ct_sql.inc.
....
To fix the code, the third conjuct of the if condition needs to be
changed from
&& $this->db->f(1) == 0
to
&& $this->db->nextrecord() && $this->db->f(0) == 0
Das ist nicht von mir, scheint aber vielen geholfen zu haben. Probiers
mal aus, natürlich ohne Gewähr :)
Bye
Henning
php::bar PHP Wiki - Listenarchive