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
This commit is contained in:
Tilghman Lesher
2006-11-13 05:58:14 +00:00
parent 6fb342ecfe
commit f2bc05d1d4
2 changed files with 24 additions and 13 deletions

View File

@@ -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