Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-10814

Large Objects may not be used in auto-commit mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 10.0.0.Final
    • 10.0.0.Final
    • Test Suite
    • None

      https://github.com/infinispan/infinispan/blob/d372a4c80d80d149aa82909cee48d4a2913d1089/persistence/jdbc/src/test/java/org/infinispan/persistence/jdbc/TableManagerTest.java#L119
      is throwing the following exception with postgres

      Large Objects may not be used in auto-commit mode
      

      To fix, we can just change:

      ps.setBlob(2, new ByteArrayInputStream(data));
      

      to

      ps.setBytes(2, data);
      

              gustavolira Gustavo Lira Silva
              gustavolira Gustavo Lira Silva
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: