diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2006-11-13 05:58:14 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2006-11-13 05:58:14 +0000 |
commit | f2bc05d1d4704fe67176d1718805a0b8e756372a (patch) | |
tree | 5eb6ac14b82f4eac7e5c81d226c388984fcc04f1 /configs | |
parent | 6fb342ecfeebcd32ab9f434ddcc6ee7fd0c0079d (diff) |
Feature: allow the sanity SQL to be customized per connection class (Issue 6453)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47530 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configs')
-rw-r--r-- | configs/res_odbc.conf.sample | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configs/res_odbc.conf.sample b/configs/res_odbc.conf.sample index 2642676bf..ecb2cc66a 100644 --- a/configs/res_odbc.conf.sample +++ b/configs/res_odbc.conf.sample @@ -15,6 +15,10 @@ dsn => asterisk ;username => myuser ;password => mypass pre-connect => yes +; What should we execute to ensure that our connection is still alive? The +; statement should return a non-zero value in the first field of its first +; record. The default is "select 1". +;sanitysql => select 1 [mysql2] @@ -35,7 +39,7 @@ limit => 5 username => oscar password => thegrouch pre-connect => yes - +sanitysql => select count(*) from systables |