Summary: | add connection check in oracle dbd driver | ||
---|---|---|---|
Product: | APR | Reporter: | Chris Darroch <chrisd> |
Component: | APR-util | Assignee: | Apache Portable Runtime bugs mailinglist <bugs> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | bojan, chrisd |
Priority: | P3 | Keywords: | PatchAvailable |
Version: | HEAD | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | check_conn for apr_dbd_oracle.c |
Description
Chris Darroch
2007-05-18 15:58:32 UTC
Created attachment 20218 [details]
check_conn for apr_dbd_oracle.c
Should apply to APR-util HEAD as of 18/05/2007.
Thanks for the patch Chris. I'm guessing "SELECT 1 FROM dual" is some kind of Oracle-ism for "am I connected?", right? I'm also guessing this should return precisely one row. The "dual" pseudo-table is kind of a scratch table in Oracle which you can use in statement where you just need a placeholder, e.g., "SELECT SYSDATE FROM dual" to get the current date, etc. So this statement should always return one row, as you say. (The user doesn't need to have created a "dual" table; it's always available for use in statements.) |