From 13e9f6f4b55d43491a66e85c3cc9207b4b442aae Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sat, 3 Nov 2007 20:43:56 +1300 Subject: [PATCH] Fix cut and paste error. currval => nextval --- inc/auth-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/auth-functions.php b/inc/auth-functions.php index ccbd590a..09c12765 100644 --- a/inc/auth-functions.php +++ b/inc/auth-functions.php @@ -92,7 +92,7 @@ function UpdateUserFromExternal( &$usr ) { * When we're doing the create we will usually need to generate a user number */ if ( !isset($usr->user_no) || intval($usr->user_no) == 0 ) { - $qry = new PgQuery( "SELECT currval('usr_user_no_seq');" ); + $qry = new PgQuery( "SELECT nextval('usr_user_no_seq');" ); $qry->Exec('Login',__LINE,__FILE__); $sequence_value = $qry->Fetch(true); // Fetch as an array $usr->user_no = $sequence_value[0];