Skip to content

Commit

Permalink
fixes for oracle backend
Browse files Browse the repository at this point in the history
  • Loading branch information
bold84 committed Mar 22, 2024
1 parent 371804f commit dd96bcb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/backends/oracle/standard-into-type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ void oracle_standard_into_type_backend::define_by_pos(
ociData_ = lobp;
}
break;
default:
throw soci_error("Into element used with non-supported type.");
}


sword res = OCIDefineByPos(statement_.stmtp_, &defnp_,
statement_.session_.errhp_,
Expand Down
4 changes: 4 additions & 0 deletions src/backends/oracle/standard-use-type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ void oracle_standard_use_type_backend::prepare_for_bind(
ociData_ = lobp;
}
break;
default:
throw soci_error("Use element used with non-supported type.");
}
}

Expand Down Expand Up @@ -468,6 +470,7 @@ void oracle_standard_use_type_backend::pre_use(indicator const *ind)

case x_xmltype:
case x_longstring:
case x_stdwstring:
case x_rowid:
case x_blob:
// nothing to do
Expand Down Expand Up @@ -682,6 +685,7 @@ void oracle_standard_use_type_backend::post_use(bool gotData, indicator *ind)
break;
case x_blob:
case x_rowid:
case x_stdwstring:
case x_xmltype:
case x_longstring:
// nothing to do here
Expand Down
2 changes: 2 additions & 0 deletions src/backends/oracle/vector-into-type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ void oracle_vector_into_type_backend::define_by_pos_bulk(
case x_statement:
case x_rowid:
case x_blob:
case x_stdwstring:
case x_wchar:
throw soci_error("Unsupported type for vector into parameter");
}

Expand Down

0 comments on commit dd96bcb

Please sign in to comment.