From 2f63e8765617f04c742bb609a74abcc804002d3e Mon Sep 17 00:00:00 2001 From: chriskl Date: Mon, 2 Jun 2003 01:34:15 +0000 Subject: [PATCH] resetting sequences with bizarre names now 100% fixed --- classes/database/Postgres.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/database/Postgres.php b/classes/database/Postgres.php index 46e82e6c..99d000aa 100755 --- a/classes/database/Postgres.php +++ b/classes/database/Postgres.php @@ -4,7 +4,7 @@ * A class that implements the DB interface for Postgres * Note: This class uses ADODB and returns RecordSets. * - * $Id: Postgres.php,v 1.120 2003/06/02 01:22:26 chriskl Exp $ + * $Id: Postgres.php,v 1.121 2003/06/02 01:34:15 chriskl Exp $ */ // @@@ THOUGHT: What about inherits? ie. use of ONLY??? @@ -905,7 +905,9 @@ class Postgres extends BaseDB { * @return 0 success */ function &resetSequence($sequence) { + /* This double-cleaning is deliberate */ $this->fieldClean($sequence); + $this->clean($sequence); $sql = "SELECT SETVAL('\"{$sequence}\"', 1)"; -- 2.39.5