diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2006-02-23 19:26:22 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2006-02-23 19:26:22 +0000 |
commit | 516d690aca1171953f65bba5cc84f45cf0893a99 (patch) | |
tree | 0b48f797a93c4190a14d61edba9d102c9a3a9381 /funcs | |
parent | 98dbc9553391bdcae50adaaf667e199ca039c3e3 (diff) |
Some sick individuals use SQL queries longer than 512 bytes in the dialplan. ;-)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10895 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs')
-rw-r--r-- | funcs/func_odbc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c index 29ce4f303..159919e43 100644 --- a/funcs/func_odbc.c +++ b/funcs/func_odbc.c @@ -51,8 +51,8 @@ static char *config = "func_odbc.conf"; struct acf_odbc_query { char name[30]; char dsn[30]; - char sql_read[512]; - char sql_write[512]; + char sql_read[2048]; + char sql_write[2048]; struct ast_custom_function *acf; unsigned int deleteme:1; struct acf_odbc_query *next; @@ -79,7 +79,7 @@ static int acf_odbc_write(struct ast_channel *chan, char *cmd, char *s, const ch { odbc_obj *obj; struct acf_odbc_query *query; - char *t, *arg, buf[512]="", varname[15]; + char *t, *arg, buf[2048]="", varname[15]; int res, argcount=0, valcount=0, i, retry=0; struct ast_channel *ast; SQLHSTMT stmt; @@ -237,7 +237,7 @@ static int acf_odbc_read(struct ast_channel *chan, char *cmd, char *s, char *buf { odbc_obj *obj; struct acf_odbc_query *query; - char *arg, sql[512] = "", varname[15]; + char *arg, sql[2048] = "", varname[15]; int count=0, res, x; SQLHSTMT stmt; SQLSMALLINT colcount=0; |