X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=DBSchema%2FDBD%2FPg.pm;h=da4900983a2acfbf50c1b9227f506927b3ca1d50;hb=67bdf8ab29e1fe0b2a057d9955a30bb363cda1f6;hp=fae68e18f76628d7ac2da6a97c23e7c993133fcd;hpb=b8a52445f2a1bdae86e16d4a3e9aa9d2b709c333;p=DBIx-DBSchema.git diff --git a/DBSchema/DBD/Pg.pm b/DBSchema/DBD/Pg.pm index fae68e1..da49009 100644 --- a/DBSchema/DBD/Pg.pm +++ b/DBSchema/DBD/Pg.pm @@ -177,7 +177,8 @@ sub add_column_callback { my $nextval; warn $warning if $warning; if ( $pg_server_version >= 70300 ) { - $nextval = "nextval('public.${table}_${name}_seq'::text)"; + my $db_schema = default_db_schema(); + $nextval = "nextval('$db_schema.${table}_${name}_seq'::text)"; } else { $nextval = "nextval('${table}_${name}_seq'::text)"; } @@ -288,7 +289,7 @@ Ivan Kohler Copyright (c) 2000 Ivan Kohler Copyright (c) 2000 Mail Abuse Prevention System LLC -Copyright (c) 2007 Freeside Internet Services, Inc. +Copyright (c) 2009 Freeside Internet Services, Inc. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.