Return-Path: X-Original-To: apmail-cayenne-dev-archive@www.apache.org Delivered-To: apmail-cayenne-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C81D7F7B for ; Tue, 6 Dec 2011 00:07:01 +0000 (UTC) Received: (qmail 64705 invoked by uid 500); 6 Dec 2011 00:07:01 -0000 Delivered-To: apmail-cayenne-dev-archive@cayenne.apache.org Received: (qmail 64675 invoked by uid 500); 6 Dec 2011 00:07:00 -0000 Mailing-List: contact dev-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list dev@cayenne.apache.org Received: (qmail 64667 invoked by uid 99); 6 Dec 2011 00:07:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2011 00:07:00 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [205.172.16.71] (HELO leka2.oceanic.com) (205.172.16.71) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2011 00:06:52 +0000 Received: from leka2.oceanic.com (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id F2944E21075 for ; Mon, 5 Dec 2011 13:53:41 -1000 (HST) Received: from [192.168.1.100] (otwbsc02.oceanic.net [205.172.16.103]) by leka2.oceanic.com (Postfix) with ESMTP id 5C751E2106B for ; Mon, 5 Dec 2011 13:53:41 -1000 (HST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: Foreign keys whe migrating From: Andrus Adamchik In-Reply-To: Date: Mon, 5 Dec 2011 14:06:29 -1000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4EC6DC2E.5060604@maniatis.org> <4ECA1F93.9090600@maniatis.org> To: dev@cayenne.apache.org X-Mailer: Apple Mail (2.1084) X-PMX-Version: 5.6.0.2009776, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.12.5.235415 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' SUPERLONG_LINE 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_600_699 0, BODY_SIZE_7000_LESS 0, NO_URI_FOUND 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __MIME_VERSION_APPLEMAIL 0, __MSGID_APPLEMAIL 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __SXL_SIG_ERROR_SERVFAIL , __TO_MALFORMED_2 0, __TO_NO_NAME 0, __USER_AGENT_APPLEMAIL 0, __X_MAILER_APPLEMAIL 0' On Nov 21, 2011, at 12:48 AM, Durchholz, Joachim wrote: > 1) Nope, SET CONSTRAINTS ALL DEFERRED is an in-session command. It = affects just the currently running session, until the next COMMIT (at = which point SET CONSTRAINTs is reset to whatever the database default = is, usuall SET CONSTRAINTS ALL IMMEDIATE). I guess doing this inside Cayenne OracleAdapter on commit might be = helpful for the Oracle users. And yeah, also wish other DB's would = support deferred constraint checking.=20 BTW the original issue that Christian described was happening during DDL = operations (vs DML we are discussing here). DDL could be an entirely = different beast. Andrus=