|
28 | 28 | import io.vertx.mysqlclient.MySQLConnectOptions; |
29 | 29 | import io.vertx.mysqlclient.SslMode; |
30 | 30 | import io.vertx.mysqlclient.impl.codec.ClearCachedStatementsEvent; |
31 | | -import io.vertx.mysqlclient.impl.codec.CommandCodec; |
32 | | -import io.vertx.mysqlclient.impl.codec.ExtendedBatchQueryCommandCodec; |
33 | | -import io.vertx.mysqlclient.impl.codec.ExtendedQueryCommandCodec; |
| 31 | +import io.vertx.mysqlclient.impl.codec.MySQLCommand; |
| 32 | +import io.vertx.mysqlclient.impl.codec.ExtendedBatchQueryMySQLCommand; |
| 33 | +import io.vertx.mysqlclient.impl.codec.ExtendedQueryMySQLCommand; |
34 | 34 | import io.vertx.mysqlclient.impl.codec.MySQLCodec; |
35 | 35 | import io.vertx.mysqlclient.impl.codec.MySQLPacketDecoder; |
36 | 36 | import io.vertx.mysqlclient.impl.codec.MySQLPreparedStatement; |
@@ -105,15 +105,15 @@ public void init() { |
105 | 105 | @Override |
106 | 106 | protected CommandMessage<?, ?> toMessage(ExtendedQueryCommand<?> command, PreparedStatement preparedStatement) { |
107 | 107 | if (command.isBatch()) { |
108 | | - return new ExtendedBatchQueryCommandCodec<>(command, (MySQLPreparedStatement) preparedStatement); |
| 108 | + return new ExtendedBatchQueryMySQLCommand<>(command, (MySQLPreparedStatement) preparedStatement); |
109 | 109 | } else { |
110 | | - return new ExtendedQueryCommandCodec<>(command, (MySQLPreparedStatement) preparedStatement); |
| 110 | + return new ExtendedQueryMySQLCommand<>(command, (MySQLPreparedStatement) preparedStatement); |
111 | 111 | } |
112 | 112 | } |
113 | 113 |
|
114 | 114 | @Override |
115 | 115 | protected CommandMessage<?, ?> toMessage(CommandBase<?> command) { |
116 | | - return CommandCodec.wrap(command); |
| 116 | + return MySQLCommand.wrap(command); |
117 | 117 | } |
118 | 118 |
|
119 | 119 | @Override |
|
0 commit comments