Skip to content

fix(jdbc): throw SQLFeatureNotSupportedException from createArrayOf and createStruct - #290

Merged
magnusp merged 1 commit into
mainfrom
fix/289-create-array-struct-feature-not-supported
Oct 31, 2026
Merged

magnusp merged 1 commit into
mainfrom
fix/289-create-array-struct-feature-not-supported

Conversation

@magnusp

@magnusp magnusp commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

Fixes #289.

Connection.createArrayOf and createStruct threw a bare UnsupportedOperationException. JDBC and the Appendix B policy in AGENTS.md require SQLFeatureNotSupportedException for the N/A ARRAY and STRUCT types. Both now throw it, with a message that names the method.

Test: LibsqlConnectionTest#createArrayOfAndCreateStructThrowFeatureNotSupported. ./mvnw test -pl libsql-jdbc -am and spotless:apply are clean. Integration tests were not run.

@magnusp
magnusp force-pushed the fix/289-create-array-struct-feature-not-supported branch from 87c8fdd to e861851 Compare October 31, 2026 20:58
@magnusp
magnusp merged commit db24924 into main Oct 31, 2026
5 checks passed
@magnusp
magnusp deleted the fix/289-create-array-struct-feature-not-supported branch October 31, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Connection.createArrayOf and createStruct throw bare UnsupportedOperationException

1 participant