Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 9D0AC9FA1B4 for ; Thu, 19 Jul 2007 07:01:09 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 30085-05 for ; Thu, 19 Jul 2007 07:01:00 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from beaver.fastcrypt.com (beaver.fastcrypt.com [64.7.141.17]) by postgresql.org (Postfix) with ESMTP id E81B89FA147 for ; Thu, 19 Jul 2007 07:00:59 -0300 (ADT) Received: from [192.168.1.14] (dcdsl.ebox.com [64.7.143.116]) by beaver.fastcrypt.com (Postfix) with ESMTP id 5A03C158067F; Thu, 19 Jul 2007 06:15:27 -0400 (EDT) In-Reply-To: <8EF82CD876C6F2439EBF55C5A1D9061A52B5BB@amsmamx01.mannheim-germany.europe.ams.local> References: <8EF82CD876C6F2439EBF55C5A1D9061A52B5BB@amsmamx01.mannheim-germany.europe.ams.local> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: multipart/alternative; boundary=Apple-Mail-60-373653215 Message-Id: <02ECFD52-6819-4776-8E41-59C7693C66BF@fastcrypt.com> Cc: From: Dave Cramer Subject: Re: sessionVariables=FOREIGN_KEY_CHECKS=0 Date: Thu, 19 Jul 2007 06:01:23 -0400 To: "Badawy, Mohamed" X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/88 X-Sequence-Number: 17262 --Apple-Mail-60-373653215 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed 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 > > > > --Apple-Mail-60-373653215 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1
On 19-Jul-07, at = 5:46 AM, Badawy, Mohamed wrote:

Hi = AllAm 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

=A0

jdbc:mysql://localhost:3306/testDB?sessionVariables=3DFOREIGN_KEY_CHECKS= =3D0but the forigen key checks is not working with postgres. = Any idea ???

thnx for any reply

=A0

=A0

Best Regards,,,

=A0

Mohamed Badawy

=A0



<= /HTML>= --Apple-Mail-60-373653215--