Skip to content

Split multi-statement SQL in Android execute()#1

Merged
microbit-matt-hillsdon merged 1 commit intomainfrom
split-for-ddl
Feb 19, 2026
Merged

Split multi-statement SQL in Android execute()#1
microbit-matt-hillsdon merged 1 commit intomainfrom
split-for-ddl

Conversation

@microbit-matt-hillsdon
Copy link
Contributor

@microbit-matt-hillsdon microbit-matt-hillsdon commented Feb 19, 2026

androidx.sqlite's prepare() only compiles the first statement, so multi-statement strings (e.g. schema DDL) need to be split on semicolons and executed individually.

There might be future complications here but none that apply to our simple DDL.

androidx.sqlite's prepare() only compiles the first statement,
so multi-statement strings (e.g. schema DDL) need to be split
on semicolons and executed individually.
@microbit-matt-hillsdon microbit-matt-hillsdon merged commit 512f69b into main Feb 19, 2026
4 checks passed
@microbit-matt-hillsdon microbit-matt-hillsdon deleted the split-for-ddl branch February 19, 2026 11:14
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.

1 participant