pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Badawy, Mohamed <Mohamed.Badawy@ams-europe.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: sessionVariables=FOREIGN_KEY_CHECKS=0
Date: Thu, 19 Jul 2007 06:01:23 -0400
Message-ID: <02ECFD52-6819-4776-8E41-59C7693C66BF@fastcrypt.com> (raw)
In-Reply-To: <8EF82CD876C6F2439EBF55C5A1D9061A52B5BB@amsmamx01.mannheim-germany.europe.ams.local>
References: <8EF82CD876C6F2439EBF55C5A1D9061A52B5BB@amsmamx01.mannheim-germany.europe.ams.local>


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
>
>
>
>

view thread (2+ messages)

Message-ID: <02ECFD52-6819-4776-8E41-59C7693C66BF@fastcrypt.com>
Permalink:  ../02ECFD52-6819-4776-8E41-59C7693C66BF@fastcrypt.com/
Also on:    postgresql.org/message-id/02ECFD52-6819-4776-8E41-59C7693C66BF@fastcrypt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pg@fastcrypt.com, Mohamed.Badawy@ams-europe.com
  Subject: Re: sessionVariables=FOREIGN_KEY_CHECKS=0
  In-Reply-To: <02ECFD52-6819-4776-8E41-59C7693C66BF@fastcrypt.com>
  References: <8EF82CD876C6F2439EBF55C5A1D9061A52B5BB@amsmamx01.mannheim-germany.europe.ams.local> <02ECFD52-6819-4776-8E41-59C7693C66BF@fastcrypt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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