public int updateRaw ( DatabaseConnection connection , String statement , String [ ] arguments ) throws SQLException { logger . debug ( "running raw update statement: {}" , statement ) ; if ( arguments . length > 0 ) { // need to do the (Object) cast to force args to be a single object logger . trace ( "update arguments: {}" , ( Object ) arguments ) ; } CompiledStatement compiledStatement = connection . compileStatement ( statement , StatementType . UPDATE , noFieldTypes , DatabaseConnection . DEFAULT_RESULT_FLAGS , false ) ; try { assignStatementArguments ( compiledStatement , arguments ) ; return compiledStatement . runUpdate ( ) ; } finally { IOUtils . closeThrowSqlException ( compiledStatement , "compiled statement" ) ; } }
Return the number of rows affected .