mirror of
https://github.com/denoland/deno.git
synced 2025-02-07 23:06:50 -05:00
x
This commit is contained in:
parent
f2ddc3b52e
commit
e7e25472f4
1 changed files with 2 additions and 5 deletions
|
@ -382,12 +382,9 @@ impl StatementSync {
|
|||
// as it lives as long as the StatementSync instance.
|
||||
unsafe {
|
||||
let raw = ffi::sqlite3_sql(self.inner);
|
||||
let sql = std::ffi::CStr::from_ptr(raw as _)
|
||||
std::ffi::CStr::from_ptr(raw as _)
|
||||
.to_string_lossy()
|
||||
.into_owned();
|
||||
ffi::sqlite3_free(raw as _);
|
||||
|
||||
sql
|
||||
.into_owned()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue