@@ -2404,10 +2404,10 @@ int OCCChild::execute_query(const std::string& query)
2404
2404
return -1 ;
2405
2405
}
2406
2406
2407
- rc = OCIStmtPrepare2 (svchp,
2408
- stmthp, errhp, (text *)const_cast <char *>(query.c_str ()),
2407
+ rc = OCIStmtPrepare2 (svchp, &stmthp, errhp, (text *)const_cast <char *>(query.c_str ()),
2409
2408
(ub4)query.length (),
2410
- (ub4)OCI_NTV_SYNTAX, (ub4)OCI_DEFAULT);
2409
+ NULL , 0 ,
2410
+ (ub4)OCI_NTV_SYNTAX, OCI_DEFAULT);
2411
2411
if (rc != OCI_SUCCESS)
2412
2412
{
2413
2413
DO_OCI_HANDLE_FREE (stmthp, OCI_HTYPE_STMT, LOG_WARNING);
@@ -3158,11 +3158,12 @@ int OCCChild::prepare(const std::string& _statement, occ::ApiVersion _version)
3158
3158
cache_misses++;
3159
3159
3160
3160
// prepare the new statement
3161
- rc = OCIStmtPrepare2 (svchp,
3162
- entry->stmthp ,
3161
+ rc = OCIStmtPrepare2 (svchp, &entry->stmthp ,
3163
3162
errhp,
3164
3163
(text *)const_cast <char *>(statement.c_str ()),
3165
3164
(ub4)statement.length (),
3165
+ NULL , // No Key
3166
+ 0 , // Key Length
3166
3167
(ub4)OCI_NTV_SYNTAX,
3167
3168
OCI_DEFAULT | OCI_PREP2_GET_SQL_ID);
3168
3169
if (rc != OCI_SUCCESS)
@@ -5432,7 +5433,7 @@ int OCCChild::get_db_charset(std::string& _charset)
5432
5433
sys_context('USERENV', 'DB_UNIQUE_NAME') AS db_uname, \
5433
5434
sys_context('USERENV', 'SID') AS sid \
5434
5435
FROM nls_database_parameters WHERE parameter = 'NLS_CHARACTERSET'" ;
5435
- rc = OCIStmtPrepare2 (svchp, stmthp, errhp, (text *)const_cast <char *>(sql), strlen (sql), OCI_NTV_SYNTAX, OCI_DEFAULT);
5436
+ rc = OCIStmtPrepare2 (svchp, & stmthp, errhp, (text *)const_cast <char *>(sql), strlen (sql), NULL , 0 , OCI_NTV_SYNTAX, OCI_DEFAULT);
5436
5437
if (rc != OCI_SUCCESS)
5437
5438
{
5438
5439
DO_OCI_HANDLE_FREE (stmthp, OCI_HTYPE_STMT, LOG_WARNING);
@@ -5543,7 +5544,7 @@ int OCCChild::execute_query_with_n_binds( const std::string & _sql, const std::v
5543
5544
return -1 ;
5544
5545
}
5545
5546
5546
- rc = OCIStmtPrepare2 (svchp, m_session_var_stmthp, errhp, (text *)const_cast <char *>(_sql.c_str ()), (ub4)_sql.length (), OCI_NTV_SYNTAX, OCI_DEFAULT);
5547
+ 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);
5547
5548
if (rc != OCI_SUCCESS)
5548
5549
{
5549
5550
DO_OCI_HANDLE_FREE (m_session_var_stmthp, OCI_HTYPE_STMT, LOG_WARNING);
0 commit comments