Parent Directory | Revision Log | Patch
revision 1.30 by sparkyx, Sun Sep 25 14:33:30 2005 UTC | revision 1.31 by sparkyx, Wed Sep 28 10:09:31 2005 UTC | |
---|---|---|
# | Line 309 for ($e=0;$e < $MaxDossier;$e++) { | Line 309 for ($e=0;$e < $MaxDossier;$e++) { |
309 | //-- | //-- |
310 | if ( GetVersion($db) == 7 ) { | if ( GetVersion($db) == 7 ) { |
311 | ExecuteScript($db,'sql/patch/upgrade7.sql'); | ExecuteScript($db,'sql/patch/upgrade7.sql'); |
312 | // now we use sequence instead of computing a max | |
313 | // | |
314 | $Res=ExecSql($db,'select max(jr_grpt_id) as L from jrn'); | |
315 | if ( pg_NumRows($Res) == 1) { | |
316 | $Row=pg_fetch_array($Res,0); | |
317 | $Max=$Row['L']; | |
318 | $Res=ExecSql($db,"select setval('s_grpt',$Max,true)"); | |
319 | } | |
320 | } // version == 6 | } // version == 6 |
321 | ||
322 | } | } |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |