@@ -123,7 +123,7 @@ mod test {
123123ALTER TABLE t ADD COLUMN c BOOLEAN;
124124 "# ;
125125 assert_snapshot ! ( lint_errors( sql, Rule :: RequireTimeoutSettings ) , @r"
126- error[RequireTimeoutSettings ]: Missing `set lock_timeout` before potentially slow operations
126+ warning[require-timeout-settings ]: Missing `set lock_timeout` before potentially slow operations
127127 ββΈ
128128 2 β ALTER TABLE t ADD COLUMN c BOOLEAN;
129129 β ββββββββββββββββββββββββββββββββββ
@@ -132,7 +132,7 @@ ALTER TABLE t ADD COLUMN c BOOLEAN;
132132 ββ΄
133133 2 + set lock_timeout = '1s';
134134 β°β΄
135- error[RequireTimeoutSettings ]: Missing `set statement_timeout` before potentially slow operations
135+ warning[require-timeout-settings ]: Missing `set statement_timeout` before potentially slow operations
136136 ββΈ
137137 2 β ALTER TABLE t ADD COLUMN c BOOLEAN;
138138 β ββββββββββββββββββββββββββββββββββ
@@ -151,7 +151,7 @@ SET statement_timeout = '5s';
151151ALTER TABLE t ADD COLUMN c BOOLEAN;
152152 "# ;
153153 assert_snapshot ! ( lint_errors( sql, Rule :: RequireTimeoutSettings ) , @r"
154- error[RequireTimeoutSettings ]: Missing `set lock_timeout` before potentially slow operations
154+ warning[require-timeout-settings ]: Missing `set lock_timeout` before potentially slow operations
155155 ββΈ
156156 3 β ALTER TABLE t ADD COLUMN c BOOLEAN;
157157 β ββββββββββββββββββββββββββββββββββ
@@ -170,7 +170,7 @@ SET lock_timeout = '1s';
170170ALTER TABLE t ADD COLUMN c BOOLEAN;
171171 "# ;
172172 assert_snapshot ! ( lint_errors( sql, Rule :: RequireTimeoutSettings ) , @r"
173- error[RequireTimeoutSettings ]: Missing `set statement_timeout` before potentially slow operations
173+ warning[require-timeout-settings ]: Missing `set statement_timeout` before potentially slow operations
174174 ββΈ
175175 3 β ALTER TABLE t ADD COLUMN c BOOLEAN;
176176 β ββββββββββββββββββββββββββββββββββ
@@ -218,7 +218,7 @@ SET foo.statement_timeout = '5s';
218218ALTER TABLE t ADD COLUMN c BOOLEAN;
219219 "# ;
220220 assert_snapshot ! ( lint_errors( sql, Rule :: RequireTimeoutSettings ) , @r"
221- error[RequireTimeoutSettings ]: Missing `set lock_timeout` before potentially slow operations
221+ warning[require-timeout-settings ]: Missing `set lock_timeout` before potentially slow operations
222222 ββΈ
223223 4 β ALTER TABLE t ADD COLUMN c BOOLEAN;
224224 β ββββββββββββββββββββββββββββββββββ
@@ -227,7 +227,7 @@ ALTER TABLE t ADD COLUMN c BOOLEAN;
227227 ββ΄
228228 2 + set lock_timeout = '1s';
229229 β°β΄
230- error[RequireTimeoutSettings ]: Missing `set statement_timeout` before potentially slow operations
230+ warning[require-timeout-settings ]: Missing `set statement_timeout` before potentially slow operations
231231 ββΈ
232232 4 β ALTER TABLE t ADD COLUMN c BOOLEAN;
233233 β ββββββββββββββββββββββββββββββββββ
@@ -246,7 +246,7 @@ SET lock_timeout = '1s';
246246SET statement_timeout = '5s';
247247 "# ;
248248 assert_snapshot ! ( lint_errors( sql, Rule :: RequireTimeoutSettings ) , @r"
249- error[RequireTimeoutSettings ]: Missing `set lock_timeout` before potentially slow operations
249+ warning[require-timeout-settings ]: Missing `set lock_timeout` before potentially slow operations
250250 ββΈ
251251 2 β ALTER TABLE t ADD COLUMN c BOOLEAN;
252252 β ββββββββββββββββββββββββββββββββββ
@@ -255,7 +255,7 @@ SET statement_timeout = '5s';
255255 ββ΄
256256 2 + set lock_timeout = '1s';
257257 β°β΄
258- error[RequireTimeoutSettings ]: Missing `set statement_timeout` before potentially slow operations
258+ warning[require-timeout-settings ]: Missing `set statement_timeout` before potentially slow operations
259259 ββΈ
260260 2 β ALTER TABLE t ADD COLUMN c BOOLEAN;
261261 β ββββββββββββββββββββββββββββββββββ
@@ -273,7 +273,7 @@ SET statement_timeout = '5s';
273273CREATE TYPE mood AS ENUM ('sad', 'ok', 'happy');
274274 "# ;
275275 assert_snapshot ! ( lint_errors( sql, Rule :: RequireTimeoutSettings ) , @r"
276- error[RequireTimeoutSettings ]: Missing `set lock_timeout` before potentially slow operations
276+ warning[require-timeout-settings ]: Missing `set lock_timeout` before potentially slow operations
277277 ββΈ
278278 2 β CREATE TYPE mood AS ENUM ('sad', 'ok', 'happy');
279279 β βββββββββββββββββββββββββββββββββββββββββββββββ
@@ -282,7 +282,7 @@ CREATE TYPE mood AS ENUM ('sad', 'ok', 'happy');
282282 ββ΄
283283 2 + set lock_timeout = '1s';
284284 β°β΄
285- error[RequireTimeoutSettings ]: Missing `set statement_timeout` before potentially slow operations
285+ warning[require-timeout-settings ]: Missing `set statement_timeout` before potentially slow operations
286286 ββΈ
287287 2 β CREATE TYPE mood AS ENUM ('sad', 'ok', 'happy');
288288 β βββββββββββββββββββββββββββββββββββββββββββββββ
0 commit comments