Menu

dbunit Merge Request #58: Use connection.unwrap to get PGConnection in PostgreSQLOidDataType.setSqlValue (merged)

Merging...

Merged

Something went wrong. Please, merge manually

Checking if merge is possible...

Something went wrong. Please, merge manually

Waldemar Biller wants to merge 1 commit from /u/wbiller/dbunit/ to master, 2024-12-28

I ran into a ClassCastException when using the oid datatype and the HikariCP connection pool. The getSqlValue already uses connection.unwrap, so I gave it a try in in a custom implementation of setSqlValue, and it worked. That's why I decided to use connection.unwrap in setSqlValue as well.

Commit Date  
[7edbe5] (HEADfix-connection-unwrapmaster) by Biller, Waldemar Biller, Waldemar

Use connection.unwrap to get PGConnection

2024-12-28 11:39:42 Tree

Discussion

  • Jeff Jensen

    Jeff Jensen - 2024-12-28
    • Status: open --> merged
     
  • Jeff Jensen

    Jeff Jensen - 2024-12-28

    Thank you for fixing this issue and creating an MR! Much appreciated.
    Agreed, your fix parallels the getSqlValue() fix done a few years ago in commit c4d9b1f7.

    Please let me know if you have interest in making more changes.

     

Log in to post a comment.

MongoDB Logo MongoDB