[cvs] commit: horde/lib/Prefs sql.php
Jon Parise
jon@horde.org
Tue, 14 May 2002 11:30:06 -0700 (PDT)
jon 2002/05/14 11:30:06 PDT
Modified files:
lib/Prefs sql.php
Log:
Instead of testing for a row's existing by attempting an insertion,
explicitly perform a select query to test for a row's existence. Based on
the result of that query, we know whether to perform an update or an
insertion.
This should get rid of those warnings in RDBMS logs about duplicate
insertion attempts.
Submitted by: Stephen Grier <s.e.grier@qmul.ac.uk>
Revision Changes Path
1.36 +39 -13 horde/lib/Prefs/sql.php
Chora Links:
http://cvs.horde.org/diff.php/horde/lib/Prefs/sql.php?r1=1.35&r2=1.36&ty=u