• Peter Wu's avatar
    Document Dbh.test_reactive, return saner values · 8e4423f1
    Peter Wu 提交于
    In the FreeSWITCH core, the return value of switch_case_db_test_reactive
    is ignored, but it is usable in LUA modules (and other bindings via
    SWIG). The LUA API example[1] shows how to check the return value, but
    that example miserably fails if the database did not exist before.
    
    Changes:
    
     - Document the expected behavior of the test_reactive function.
     - Assert that test_sql and sql_reactive are both given. If either
       query is not given, the caller is using the wrong API.
     - When SCF_AUTO_SCHEMAS is cleared, use the return value of the
       test_sql execution. Does anybody use this? Why not remove it?
     - Do not unconditionally return SWITCH_FALSE when test_sql fails,
       instead allow it to become SWITCH_TRUE when reactive_sql passes.
     - Remove the unnecessary test_sql check for SCDB_TYPE_CORE_DB
       (this is now enforced through an assert check). (+reindent)
     - Clarify the error message of drop_sql, prepending "Ignoring" to
       the "SQL ERR" message.
     - LUA: Do not print "DBH NOT Connected" if the query fails. This was
       the initial source of confusion.
    
     [1]: https://confluence.freeswitch.org/display/FREESWITCH/Lua+API+Reference
    8e4423f1
名称
最后提交
最后更新
build 正在载入提交数据...
clients/flex 正在载入提交数据...
cmake_modules 正在载入提交数据...
conf 正在载入提交数据...
debian 正在载入提交数据...
docs 正在载入提交数据...
dtd 正在载入提交数据...
fscomm 正在载入提交数据...
htdocs 正在载入提交数据...
html5/verto 正在载入提交数据...
libs 正在载入提交数据...
scripts 正在载入提交数据...
src 正在载入提交数据...
support-d 正在载入提交数据...
w32 正在载入提交数据...
web 正在载入提交数据...
yum 正在载入提交数据...
.gitattributes 正在载入提交数据...
.gitignore 正在载入提交数据...
.mailmap 正在载入提交数据...
Freeswitch.2005.unsupported.sln 正在载入提交数据...
Freeswitch.2008.express.unsupported.sln 正在载入提交数据...
Freeswitch.2008.sln.debug.bat 正在载入提交数据...
Freeswitch.2008.sln.release.bat 正在载入提交数据...
Freeswitch.2008.unsupported.sln 正在载入提交数据...
Freeswitch.2010.express.sln 正在载入提交数据...
Freeswitch.2010.sln 正在载入提交数据...
Freeswitch.2012.sln 正在载入提交数据...
Freeswitch.2012.sln.bat 正在载入提交数据...
INSTALL 正在载入提交数据...
Makefile.am 正在载入提交数据...
acinclude.m4 正在载入提交数据...
bootstrap.sh 正在载入提交数据...
cc.sh 正在载入提交数据...
cluecon.tmpl 正在载入提交数据...
cluecon2.tmpl 正在载入提交数据...
cluecon2_small.tmpl 正在载入提交数据...
cluecon_small.tmpl 正在载入提交数据...
configure.ac 正在载入提交数据...
devel-bootstrap.sh 正在载入提交数据...
erlang.spec 正在载入提交数据...
freeswitch-config-rayo.spec 正在载入提交数据...
freeswitch-sounds-en-ca-june.spec 正在载入提交数据...
freeswitch-sounds-en-us-callie.spec 正在载入提交数据...
freeswitch-sounds-fr-ca-june.spec 正在载入提交数据...
freeswitch-sounds-music.spec 正在载入提交数据...
freeswitch-sounds-ru-RU-elena.spec 正在载入提交数据...
freeswitch-sounds-sv-se-jakob.spec 正在载入提交数据...
freeswitch.spec 正在载入提交数据...
swig_common.i 正在载入提交数据...