Opened 13 years ago

Closed 13 years ago

#591 closed defect (fixed)

Constant Validation Query "SELECT 1" breaks support for DB2 and Oracle

Reported by: mcr Owned by: fxp
Priority: major Milestone: v2.7.0
Component: General Version:
Keywords: Cc:

Description

Oracle needs:

"select 1 from dual"

DB2 needs "select 1 from sysibm.sysdummy1"

All other dbs should work with "SELECT 1"

The attached patch adds an optional xml element <validationQuery> to config.xml. If no <validationQuery> element is specified, no query is used by the connection pool.

Attachments (1)

validationQuery.patch (6.2 KB ) - added by mcr 13 years ago.
Patch file tested against trunk

Download all attachments as: .zip

Change History (3)

by mcr, 13 years ago

Attachment: validationQuery.patch added

Patch file tested against trunk

comment:1 by fxp, 13 years ago

Owner: changed from geonetwork-devel@… to fxp
Status: newassigned
Version: v2.6.3

comment:2 by fxp, 13 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.