From 626da7211498429b55eba3b438d82e5119d3ec68 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Fri, 26 Oct 2012 17:36:49 +0200 Subject: duplicated code Change-Id: Ifa9b93b2daf0bb448711eb1bd3ebab69febf4f9c --- .../source/drivers/odbcbase/OPreparedStatement.cxx | 25 ---------------------- 1 file changed, 25 deletions(-) (limited to 'connectivity') 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*)¶mIndex); - - // 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. -- cgit