Skip to content

Commit 8d5904a

Browse files
committed
fix: parse smallstring for sqlite db constructor
1 parent dd6355b commit 8d5904a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

runtime/src/ext/sqlite/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ impl SqliteExt {
256256
) -> JsResult<'gc, Value<'gc>> {
257257
let filename = match args.get(0) {
258258
Value::String(s) => s.as_str(agent).to_string(),
259+
Value::SmallString(s) => s.as_str().to_string(),
259260
_ => {
260261
return Err(agent
261262
.throw_exception_with_static_message(
@@ -342,6 +343,7 @@ impl SqliteExt {
342343

343344
let sql = match args.get(1) {
344345
Value::String(s) => s.as_str(agent).to_string(),
346+
Value::SmallString(s) => s.as_str().to_string(),
345347
_ => {
346348
return Err(agent
347349
.throw_exception_with_static_message(
@@ -386,6 +388,7 @@ impl SqliteExt {
386388

387389
let sql = match args.get(1) {
388390
Value::String(s) => s.as_str(agent).to_string(),
391+
Value::SmallString(s) => s.as_str().to_string(),
389392
_ => {
390393
return Err(agent
391394
.throw_exception_with_static_message(

0 commit comments

Comments
 (0)