diff options
author | Sean Bright <sean.bright@gmail.com> | 2017-02-16 06:46:04 -0500 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2017-02-16 06:10:48 -0600 |
commit | 30aaeec5a1ec994338cb138083af812fc479f205 (patch) | |
tree | 12fa20a9e5a164e12eef24112fb3cfd999e85da5 /res/res_pjsip/pjsip_cli.c | |
parent | ca7fa7bbd2d54766f6b5911d7aa046cdcfd0dfe8 (diff) |
res_config_sqlite3: Properly create missing columns when necessary
There were two specific issues resolved here:
1) The code that iterated over the required fields
(via ast_realtime_require) was broken for the RQ_INTEGER1 field
type. Iteration would stop when the first RQ_INTEGER1 (0) field
was encountered.
2) sqlite3_changes() was used to try and count the number of rows
returned by a SELECT statement. sqlite3_changes() only counts
affected rows, so this was always returning the value from the
most recent data modification statement. We now separate read-only
queries from data modification queries and count rows appropriately
in both cases.
ASTERISK-23457 #close
Reported by: Scott Griepentrog
Change-Id: I91ed20494efc3fcfbc2a96ac7646999a49814884
Diffstat (limited to 'res/res_pjsip/pjsip_cli.c')
0 files changed, 0 insertions, 0 deletions