[CONJ-1036] org.mariadb.jdbc.client.socket.impl.PacketWriter.writeAscii() broken in 3.1.0 Created: 2022-12-23  Updated: 2023-01-11  Resolved: 2022-12-23

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: 3.1.0
Fix Version/s: 3.1.1

Type: Bug Priority: Blocker
Reporter: Felix Fontein Assignee: Diego Dupin
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates CONJ-1035 PreparedStatement Insert regression ... Closed

 Description   

Commit https://github.com/mariadb-corporation/mariadb-connector-j/commit/2bf550277768f99d2f5e999523011c57a3601725 broke writeAscii(): when the if condition is true, the string is written twice to the buffer. Adding a return statement at the end of the if should fix this.



 Comments   
Comment by Felix Fontein [ 2022-12-23 ]

Created https://github.com/mariadb-corporation/mariadb-connector-j/pull/181 which should fix this.

Comment by Diego Dupin [ 2022-12-23 ]

closing ad dupplicate of CONJ-1035, but thanks anyway

Generated at Thu Feb 08 03:20:08 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.