@@ -2389,10 +2389,10 @@ int OCCChild::execute_query(const std::string& query)
2389
2389
return -1 ;
2390
2390
}
2391
2391
2392
- rc = OCIStmtPrepare2 (svchp,
2393
- stmthp, errhp, (text *)const_cast <char *>(query.c_str ()),
2392
+ rc = OCIStmtPrepare2 (svchp, &stmthp, errhp, (text *)const_cast <char *>(query.c_str ()),
2394
2393
(ub4)query.length (),
2395
- (ub4)OCI_NTV_SYNTAX, (ub4)OCI_DEFAULT);
2394
+ NULL , 0 ,
2395
+ (ub4)OCI_NTV_SYNTAX, OCI_DEFAULT);
2396
2396
if (rc != OCI_SUCCESS)
2397
2397
{
2398
2398
DO_OCI_HANDLE_FREE (stmthp, OCI_HTYPE_STMT, LOG_WARNING);
@@ -3143,11 +3143,12 @@ int OCCChild::prepare(const std::string& _statement, occ::ApiVersion _version)
3143
3143
cache_misses++;
3144
3144
3145
3145
// prepare the new statement
3146
- rc = OCIStmtPrepare2 (svchp,
3147
- entry->stmthp ,
3146
+ rc = OCIStmtPrepare2 (svchp, &entry->stmthp ,
3148
3147
errhp,
3149
3148
(text *)const_cast <char *>(statement.c_str ()),
3150
3149
(ub4)statement.length (),
3150
+ NULL , // No Key
3151
+ 0 , // Key Length
3151
3152
(ub4)OCI_NTV_SYNTAX,
3152
3153
OCI_DEFAULT | OCI_PREP2_GET_SQL_ID);
3153
3154
if (rc != OCI_SUCCESS)
@@ -5417,7 +5418,7 @@ int OCCChild::get_db_charset(std::string& _charset)
5417
5418
sys_context('USERENV', 'DB_UNIQUE_NAME') AS db_uname, \
5418
5419
sys_context('USERENV', 'SID') AS sid \
5419
5420
FROM nls_database_parameters WHERE parameter = 'NLS_CHARACTERSET'" ;
5420
- rc = OCIStmtPrepare2 (svchp, stmthp, errhp, (text *)const_cast <char *>(sql), strlen (sql), OCI_NTV_SYNTAX, OCI_DEFAULT);
5421
+ rc = OCIStmtPrepare2 (svchp, & stmthp, errhp, (text *)const_cast <char *>(sql), strlen (sql), NULL , 0 , OCI_NTV_SYNTAX, OCI_DEFAULT);
5421
5422
if (rc != OCI_SUCCESS)
5422
5423
{
5423
5424
DO_OCI_HANDLE_FREE (stmthp, OCI_HTYPE_STMT, LOG_WARNING);
@@ -5528,7 +5529,7 @@ int OCCChild::execute_query_with_n_binds( const std::string & _sql, const std::v
5528
5529
return -1 ;
5529
5530
}
5530
5531
5531
- rc = OCIStmtPrepare2 (svchp, m_session_var_stmthp, errhp, (text *)const_cast <char *>(_sql.c_str ()), (ub4)_sql.length (), OCI_NTV_SYNTAX, OCI_DEFAULT);
5532
+ rc = OCIStmtPrepare2 (svchp, & m_session_var_stmthp, errhp, (text *)const_cast <char *>(_sql.c_str ()), (ub4)_sql.length (), NULL , 0 , OCI_NTV_SYNTAX, OCI_DEFAULT);
5532
5533
if (rc != OCI_SUCCESS)
5533
5534
{
5534
5535
DO_OCI_HANDLE_FREE (m_session_var_stmthp, OCI_HTYPE_STMT, LOG_WARNING);
0 commit comments