projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c7ddbc
)
UpdateDatabase.php
author
Alan Knowles
<alan@roojs.com>
Fri, 6 Dec 2013 07:16:13 +0000
(15:16 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 6 Dec 2013 07:16:13 +0000
(15:16 +0800)
UpdateDatabase.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
b133598
..
c851673
100644
(file)
--- a/
UpdateDatabase.php
+++ b/
UpdateDatabase.php
@@
-743,7
+743,7
@@
class Pman_Core_UpdateDatabase extends Pman
$cs->query("
SELECT 'SELECT SETVAL(' ||
quote_literal(quote_ident(nspname) || '.' || quote_ident(S.relname)) ||
- ', MAX(' || quote_ident(C.attname)|| ') ) FROM ' || nspname || '.' || quote_ident(T.relname)|| ';' as cmd
+ ', MAX(' || quote_ident(C.attname)|| ')
::integer
) FROM ' || nspname || '.' || quote_ident(T.relname)|| ';' as cmd
FROM pg_class AS S,
pg_depend AS D,
pg_class AS T,