slick.SlickException: This DBMS allows only a single AutoInc column to be returned from an INSERT

Stack Overflow | Sujit | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    How to fix Slick Exception of single AutoInc column to be returned from an INSERT

    Stack Overflow | 7 months ago | Sujit
    slick.SlickException: This DBMS allows only a single AutoInc column to be returned from an INSERT

    Root Cause Analysis

    1. slick.SlickException

      This DBMS allows only a single AutoInc column to be returned from an INSERT

      at slick.driver.JdbcStatementBuilderComponent$JdbcCompiledInsert.buildReturnColumns()
    2. slick.driver
      JdbcActionComponent$SimpleJdbcDriverAction.run
      1. slick.driver.JdbcStatementBuilderComponent$JdbcCompiledInsert.buildReturnColumns(JdbcStatementBuilderComponent.scala:69)
      2. slick.driver.JdbcActionComponent$ReturningInsertActionComposerImpl.x$12$lzycompute(JdbcActionComponent.scala:633)
      3. slick.driver.JdbcActionComponent$ReturningInsertActionComposerImpl.x$12(JdbcActionComponent.scala:633)
      4. slick.driver.JdbcActionComponent$ReturningInsertActionComposerImpl.keyColumns$lzycompute(JdbcActionComponent.scala:633)
      5. slick.driver.JdbcActionComponent$ReturningInsertActionComposerImpl.keyColumns(JdbcActionComponent.scala:633)
      6. slick.driver.JdbcActionComponent$ReturningInsertActionComposerImpl.preparedInsert(JdbcActionComponent.scala:636)
      7. slick.driver.JdbcActionComponent$InsertActionComposerImpl$SingleInsertAction.run(JdbcActionComponent.scala:504)
      8. slick.driver.JdbcActionComponent$SimpleJdbcDriverAction.run(JdbcActionComponent.scala:32)
      9. slick.driver.JdbcActionComponent$SimpleJdbcDriverAction.run(JdbcActionComponent.scala:29)
      9 frames
    3. slick.backend
      DatabaseComponent$DatabaseDef$$anon$2.run
      1. slick.backend.DatabaseComponent$DatabaseDef$$anon$2.liftedTree1$1(DatabaseComponent.scala:237)
      2. slick.backend.DatabaseComponent$DatabaseDef$$anon$2.run(DatabaseComponent.scala:237)
      2 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames