Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit 2ffd4ef

Browse files
authored
Make user_analysis PRAGMA writable (#559)
1 parent dd0edc5 commit 2ffd4ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sqld/src/query_analysis.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl StmtKind {
110110
// always ok to be served by primary
111111
"foreign_keys" | "foreign_key_list" | "foreign_key_check" | "collation_list"
112112
| "data_version" | "freelist_count" | "integrity_check" | "legacy_file_format"
113-
| "page_count" | "quick_check" | "stats" => Some(Self::Write),
113+
| "page_count" | "quick_check" | "stats" | "user_version" => Some(Self::Write),
114114
// ok to be served by primary without args
115115
"analysis_limit"
116116
| "application_id"
@@ -142,7 +142,6 @@ impl StmtKind {
142142
| "temp_store"
143143
| "threads"
144144
| "trusted_schema"
145-
| "user_version"
146145
| "wal_autocheckpoint" => {
147146
match body {
148147
Some(_) => None,

0 commit comments

Comments
 (0)