|
|
|
@ -300,7 +300,7 @@ static int acf_odbc_write(struct ast_channel *chan, const char *cmd, char *s, co
|
|
|
|
if (!ast_strlen_zero(query->writehandle[dsn])) {
|
|
|
|
if (!ast_strlen_zero(query->writehandle[dsn])) {
|
|
|
|
obj = ast_odbc_request_obj(query->writehandle[dsn], 0);
|
|
|
|
obj = ast_odbc_request_obj(query->writehandle[dsn], 0);
|
|
|
|
if (obj)
|
|
|
|
if (obj)
|
|
|
|
stmt = ast_odbc_direct_execute(obj, generic_execute, buf);
|
|
|
|
stmt = ast_odbc_direct_execute(obj, generic_execute, buf->str);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (stmt) {
|
|
|
|
if (stmt) {
|
|
|
|
status = "SUCCESS";
|
|
|
|
status = "SUCCESS";
|
|
|
|
@ -316,7 +316,7 @@ static int acf_odbc_write(struct ast_channel *chan, const char *cmd, char *s, co
|
|
|
|
if (!ast_strlen_zero(query->writehandle[dsn])) {
|
|
|
|
if (!ast_strlen_zero(query->writehandle[dsn])) {
|
|
|
|
obj = ast_odbc_request_obj(query->writehandle[dsn], 0);
|
|
|
|
obj = ast_odbc_request_obj(query->writehandle[dsn], 0);
|
|
|
|
if (obj) {
|
|
|
|
if (obj) {
|
|
|
|
stmt = ast_odbc_direct_execute(obj, generic_execute, insertbuf);
|
|
|
|
stmt = ast_odbc_direct_execute(obj, generic_execute, insertbuf->str);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (stmt) {
|
|
|
|
if (stmt) {
|
|
|
|
|