You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regression: "INTERNAL Error: Attempting to commit a transaction that is read-only but has made changes" when generating sequence values from generate_series table with bind value arguments
#36
Open
lukaseder opened this issue
Jun 17, 2024
· 0 comments
0
INTERNAL Error: Attempting to commit a transaction that is read-only but has made changes - this should not be possible
This error signals an assertion failure within DuckDB. This usually occurs due to unexpected conditions or errors in the program's logic.
For more information, see https://duckdb.org/docs/dev/internal_errors
null
java.sql.SQLException: INTERNAL Error: Attempting to commit a transaction that is read-only but has made changes - this should not be possible
This error signals an assertion failure within DuckDB. This usually occurs due to unexpected conditions or errors in the program's logic.
For more information, see https://duckdb.org/docs/dev/internal_errors
at org.duckdb.DuckDBNative.duckdb_jdbc_execute(Native Method)
at org.duckdb.DuckDBPreparedStatement.execute(DuckDBPreparedStatement.java:143)
at org.duckdb.DuckDBPreparedStatement.executeQuery(DuckDBPreparedStatement.java:175)
at org.jooq.testscripts.JDBC.main(JDBC.java:42)
This is a regression introduced in 0.10.3, still present in 1.0.0. It used to work in 0.10.2.
A workaround is to avoid bind values in generate_series(), like this:
lukaseder
changed the title
Regression: INTERNAL Error: Attempting to commit a transaction that is read-only but has made changes when generating sequence values from generate_series table with bind value arguments
Regression: "INTERNAL Error: Attempting to commit a transaction that is read-only but has made changes" when generating sequence values from generate_series table with bind value arguments
Jun 17, 2024
Create a sequence like this:
Then try to generate sequence values like this:
This produces the following error:
This is a regression introduced in 0.10.3, still present in 1.0.0. It used to work in 0.10.2.
A workaround is to avoid bind values in
generate_series()
, like this:This now prints:
The text was updated successfully, but these errors were encountered: