summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-10-26 17:36:49 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2012-10-26 19:12:22 +0200
commit626da7211498429b55eba3b438d82e5119d3ec68 (patch)
treeae398d26dca9b09840c36b91f8f08d50c9881cb7 /connectivity
parent7b4e7e027966bdd3be941d2f65399eabab0ca70e (diff)
duplicated code
Change-Id: Ifa9b93b2daf0bb448711eb1bd3ebab69febf4f9c
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/odbcbase/OPreparedStatement.cxx25
1 files changed, 0 insertions, 25 deletions
diff --git a/connectivity/source/drivers/odbcbase/OPreparedStatement.cxx b/connectivity/source/drivers/odbcbase/OPreparedStatement.cxx
index a5d24dddc628..7689ac70ebe9 100644
--- a/connectivity/source/drivers/odbcbase/OPreparedStatement.cxx
+++ b/connectivity/source/drivers/odbcbase/OPreparedStatement.cxx
@@ -199,31 +199,6 @@ sal_Bool SAL_CALL OPreparedStatement::execute( ) throw(SQLException, RuntimeExc
{
}
- // Now loop while more data is needed (i.e. a data-at-
- // execution parameter was given). For each parameter
- // that needs data, put the data from the input stream.
-
- while (needData) {
-
- // Get the parameter number that requires data
-
- sal_Int32* paramIndex = 0;
- N3SQLParamData (m_aStatementHandle,(SQLPOINTER*)&paramIndex);
-
- // If the parameter index is -1, there is no more
- // data required
-
- if (*paramIndex == -1) {
- needData = sal_False;
- }
- else {
- // Now we have the proper parameter index,
- // get the data from the input stream
- // and do a SQLPutData
- putParamData(*paramIndex);
- }
- }
-
// Now determine if there is a result set associated with
// the SQL statement that was executed. Get the column
// count, and if it is not zero, there is a result set.