estou usando o seguinte comando pra chamar uma stored procedure…
try {
pstm = bd.conectar().prepareCall("call criabd('" + ra + "','" + senha + "','" + sala + "')");
pstm.executeQuery();
} catch (SQLException ex) {
ex.printStackTrace();
}
ele da a seguinte msg de erro!! ( a stored procedure está armazenada em um server mysql q está rodando no centOS)
[color=red]java.sql.SQLException: This command is not supported in the prepared statement protocol yet
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3558)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3490)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2109)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2643)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2077)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2228)
at com.mysql.jdbc.CallableStatement.executeQuery(CallableStatement.java:912)
[/color]
alguém tem alguma ideia?!?!
ValeuU!!