mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user