mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 10:08:20 +00:00
Remove mut borrow from sym table in parse schema fn
This commit is contained in:
parent
a0f71e27be
commit
6b5ec1f07b
4 changed files with 22 additions and 20 deletions
|
@ -157,9 +157,9 @@ impl Database {
|
|||
let mut schema = schema
|
||||
.try_write()
|
||||
.expect("lock on schema should succeed first try");
|
||||
let syms = conn.syms.borrow_mut();
|
||||
let syms = conn.syms.borrow();
|
||||
if let Err(LimboError::ExtensionError(e)) =
|
||||
parse_schema_rows(rows, &mut schema, io, syms, None)
|
||||
parse_schema_rows(rows, &mut schema, io, &syms, None)
|
||||
{
|
||||
// this means that a vtab exists and we no longer have the module loaded. we print
|
||||
// a warning to the user to load the module
|
||||
|
@ -533,9 +533,9 @@ impl Connection {
|
|||
.try_write()
|
||||
.expect("lock on schema should succeed first try");
|
||||
{
|
||||
let syms = self.syms.borrow_mut();
|
||||
let syms = self.syms.borrow();
|
||||
if let Err(LimboError::ExtensionError(e)) =
|
||||
parse_schema_rows(rows, &mut schema, self.pager.io.clone(), syms, None)
|
||||
parse_schema_rows(rows, &mut schema, self.pager.io.clone(), &syms, None)
|
||||
{
|
||||
// this means that a vtab exists and we no longer have the module loaded. we print
|
||||
// a warning to the user to load the module
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue