Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libsql: Use SQLITE_TRANSIENT for text/blob #287

Merged
merged 1 commit into from
Aug 16, 2023
Merged

libsql: Use SQLITE_TRANSIENT for text/blob #287

merged 1 commit into from
Aug 16, 2023

Conversation

LucioFranco
Copy link
Contributor

No description provided.

@@ -52,7 +52,7 @@ impl Statement {
idx,
value.as_ptr() as *const c_char,
value.len() as i32,
None,
SQLITE_TRANSIENT(),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rusqlite is smarter here and checks if the string is empty and uses the static version but I think for now this is fine.

@penberg penberg added this pull request to the merge queue Aug 16, 2023
Merged via the queue into main with commit 3d46e4b Aug 16, 2023
4 checks passed
@penberg penberg deleted the lucio/transient branch August 16, 2023 18:00
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.

2 participants