You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/core/src/views.rs
+28-15
Original file line number
Diff line number
Diff line change
@@ -22,9 +22,10 @@ fn powersync_view_sql_impl(
22
22
let statement = extract_table_info(db, table)?;
23
23
24
24
let name = statement.column_text(0)?;
25
-
let local_only = statement.column_int(1)? != 0;
25
+
let view_name = statement.column_text(1)?;
26
+
let local_only = statement.column_int(2)? != 0;
26
27
27
-
let quoted_name = quote_identifier(name);
28
+
let quoted_name = quote_identifier(view_name);
28
29
let internal_name = quote_internal_name(name, local_only);
29
30
30
31
let stmt2 = db.prepare_v2("select json_extract(e.value, '$.name') as name, json_extract(e.value, '$.type') as type from json_each(json_extract(?, '$.columns')) e")?;
0 commit comments