Skip to content

Commit

Permalink
[db_oracle] fix crash when executing db_oracle_raw_query(),
Browse files Browse the repository at this point in the history
function db_oracle_submit_query() require that CON_ORA(_h)->pqdata is not null.

(cherry picked from commit d0fdbc0)
  • Loading branch information
Gang Zhuo authored and liviuchircu committed Jan 7, 2022
1 parent adc1caf commit 9e556ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/db_oracle/dbase.c
Expand Up @@ -385,6 +385,8 @@ int db_oracle_raw_query(const db_con_t* _h, const str* _s, db_res_t** _r)
return -1;
}

CON_ORA(_h)->pqdata = &cb;
CON_ORA(_h)->bindpos = 0;
CON_RESET_CURR_PS(_h); /* no prepared statements support */
memset(&cb, 0, sizeof(cb));

Expand Down

0 comments on commit 9e556ab

Please sign in to comment.