Class ComStmtPrepare
java.lang.Object
org.mariadb.jdbc.internal.com.send.ComStmtPrepare
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate SQLException
buildErrorException
(Buffer buffer) read
(PacketInputStream reader, boolean eofDeprecated) Read COM_PREPARE_RESULT.void
send
(PacketOutputStream pos) Send directly to socket the sql data.
-
Field Details
-
protocol
-
sql
-
-
Constructor Details
-
ComStmtPrepare
-
-
Method Details
-
send
Send directly to socket the sql data.- Parameters:
pos
- the writer- Throws:
IOException
- if connection error occur
-
read
public ServerPrepareResult read(PacketInputStream reader, boolean eofDeprecated) throws IOException, SQLException Read COM_PREPARE_RESULT.- Parameters:
reader
- inputStreameofDeprecated
- are EOF_packet deprecated- Returns:
- ServerPrepareResult prepare result
- Throws:
IOException
- if connection has errorSQLException
- if server answer with error.
-
buildErrorException
-