public class ComStmtPrepare extends Object
Constructor and Description |
---|
ComStmtPrepare(Protocol protocol,
String sql) |
Modifier and Type | Method and Description |
---|---|
ServerPrepareResult |
read(PacketInputStream reader,
boolean eofDeprecated)
Read COM_PREPARE_RESULT.
|
void |
send(PacketOutputStream pos)
Send directly to socket the sql data.
|
public void send(PacketOutputStream pos) throws IOException, SQLException
pos
- the writerIOException
- if connection error occurSQLException
- if packet max size is to big.public ServerPrepareResult read(PacketInputStream reader, boolean eofDeprecated) throws IOException, SQLException
reader
- inputStreameofDeprecated
- are EOF_packet deprecatedIOException
- if connection has errorSQLException
- if server answer with error.Copyright © 2017. All rights reserved.