pg.ddx.io pgsql-jdbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
sessionVariables=FOREIGN_KEY_CHECKS=0 2+ messages / 2 participants [nested] [flat]
* sessionVariables=FOREIGN_KEY_CHECKS=0 @ 2007-07-19 09:46 Badawy, Mohamed <Mohamed.Badawy@ams-europe.com> 2007-07-19 10:01 ` Re: sessionVariables=FOREIGN_KEY_CHECKS=0 Dave Cramer <pg@fastcrypt.com> 0 siblings, 1 reply; 2+ messages in thread From: Badawy, Mohamed @ 2007-07-19 09:46 UTC (permalink / raw) To: pgsql-jdbc Hi All Am working in a project & want to migrate our work from mysql to postgress we used dbunit to test & when we used to get the connection the url was like this jdbc:mysql://localhost:3306/testDB?sessionVariables=FOREIGN_KEY_CHECKS=0 but the forigen key checks is not working with postgres. Any idea ??? thnx for any reply Best Regards,,, Mohamed Badawy ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: sessionVariables=FOREIGN_KEY_CHECKS=0 2007-07-19 09:46 sessionVariables=FOREIGN_KEY_CHECKS=0 Badawy, Mohamed <Mohamed.Badawy@ams-europe.com> @ 2007-07-19 10:01 ` Dave Cramer <pg@fastcrypt.com> 0 siblings, 0 replies; 2+ messages in thread From: Dave Cramer @ 2007-07-19 10:01 UTC (permalink / raw) To: Badawy, Mohamed <Mohamed.Badawy@ams-europe.com>; +Cc: pgsql-jdbc On 19-Jul-07, at 5:46 AM, Badawy, Mohamed wrote: > Hi All > > > > > > Am working in a project & want to migrate our work from mysql to > postgress we used dbunit to test & when we used to get the > connection the url was like this > > > > jdbc:mysql://localhost:3306/testDB? > sessionVariables=FOREIGN_KEY_CHECKS=0 > > > > but the forigen key checks is not working with postgres. Any idea ??? > > Yes, you can't disable them like that in postgresql, you'd have to drop the referential checks in sql first. > > > thnx for any reply > > > > > > Best Regards,,, > > > > Mohamed Badawy > > > > ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2007-07-19 10:01 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2007-07-19 09:46 sessionVariables=FOREIGN_KEY_CHECKS=0 Badawy, Mohamed <Mohamed.Badawy@ams-europe.com> 2007-07-19 10:01 ` Dave Cramer <pg@fastcrypt.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox