Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9381311065 for ; Tue, 22 Apr 2014 13:20:13 +0000 (UTC) Received: (qmail 23323 invoked by uid 500); 22 Apr 2014 13:20:08 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 23246 invoked by uid 500); 22 Apr 2014 13:20:08 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 23235 invoked by uid 99); 22 Apr 2014 13:20:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Apr 2014 13:20:07 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [134.68.171.23] (HELO mhw.ulib.iupui.edu) (134.68.171.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Apr 2014 13:20:02 +0000 Received: from mwood by mhw.ulib.iupui.edu with local (Exim 4.80.1) (envelope-from ) id 1Wcabr-0001ju-Ct for users@tomcat.apache.org; Tue, 22 Apr 2014 09:19:39 -0400 Date: Tue, 22 Apr 2014 09:19:39 -0400 From: "Mark H. Wood" To: users@tomcat.apache.org Subject: Re: Should validationQuery commit ? Message-ID: <20140422131939.GB30083@IUPUI.Edu> References: <5350EAD0.1040200@axege.com> <535172A0.3070806@christopherschultz.net> <53565980.6010007@axege.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rJwd6BRFiFCcLxzm" Content-Disposition: inline In-Reply-To: <53565980.6010007@axege.com> User-Agent: Mutt/1.5.22 (2013-10-16) X-Virus-Checked: Checked by ClamAV on apache.org --rJwd6BRFiFCcLxzm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 22, 2014 at 01:58:56PM +0200, Franck Routier wrote: [snip] > That said, I was hit by another (related) problem this week-end, with > Oracle. > The validation query was configured as 'select 1 from dual;'. Notice the > semi-column: this broke everything with intermittent ORA-12516 errors. > Removing the semi-column fixes my app with Oracle. > Has anyone an idea of what is happening with this ; ? I believe that the semicolon is a delimiter used by SQL*Plus (and many other interactive tools for DBMS access). It seems to be used by SQL itself only in the module language and embedded SQL, where a statement delimiter is needed. It's not part of an SQL statement, so it probably doesn't belong in a query string. Commandline tools need a statement delimiter, but statements fed to the DBMS programmatically are delimited by end-of-string. --=20 Mark H. Wood, Lead System Programmer mwood@IUPUI.Edu Machines should not be friendly. Machines should be obedient. --rJwd6BRFiFCcLxzm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEAREIAAYFAlNWbGsACgkQs/NR4JuTKG++RwCcCImNJnTQQ7QC59a/qKxrWXwO T/0An1uLEQ/2oLa1GUQlJVyMjEH8ji5D =5oDi -----END PGP SIGNATURE----- --rJwd6BRFiFCcLxzm--