Skip to content

Commit

Permalink
remove crsql_version for now -- it is causing issues in the wasm bu…
Browse files Browse the repository at this point in the history
…ild for unknown reasons
  • Loading branch information
tantaman committed Jan 17, 2024
1 parent dede66f commit a8163d2
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions core/rs/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,22 +286,22 @@ pub extern "C" fn sqlite3_crsqlcore_init(
return null_mut();
}

let rc = db
.create_function_v2(
"crsql_version",
0,
sqlite::UTF8 | sqlite::INNOCUOUS | sqlite::DETERMINISTIC,
None,
Some(x_crsql_version),
None,
None,
None,
)
.unwrap_or(ResultCode::ERROR);
if rc != ResultCode::OK {
unsafe { crsql_freeExtData(ext_data) };
return null_mut();
}
// let rc = db
// .create_function_v2(
// "crsql_version",
// 0,
// sqlite::UTF8 | sqlite::INNOCUOUS | sqlite::DETERMINISTIC,
// None,
// Some(x_crsql_version),
// None,
// None,
// None,
// )
// .unwrap_or(ResultCode::ERROR);
// if rc != ResultCode::OK {
// unsafe { crsql_freeExtData(ext_data) };
// return null_mut();
// }

let rc = db
.create_function_v2(
Expand Down

0 comments on commit a8163d2

Please sign in to comment.