mjbshaw commented on code in PR #2273:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/pull/2273#discussion_r2906215760


##########
tests/sqlparser_postgres.rs:
##########
@@ -8703,3 +8703,39 @@ fn parse_pg_analyze() {
         _ => panic!("Expected Analyze, got: {stmt:?}"),
     }
 }
+
+#[test]
+fn parse_lock_table() {
+    pg_and_generic().one_statement_parses_to(
+        "LOCK public.widgets IN EXCLUSIVE MODE",
+        "LOCK TABLE public.widgets IN EXCLUSIVE MODE",
+    );
+    pg_and_generic().one_statement_parses_to(
+        "LOCK TABLE ONLY public.widgets, analytics.events * IN SHARE ROW 
EXCLUSIVE MODE NOWAIT",
+        "LOCK TABLE ONLY public.widgets, analytics.events * IN SHARE ROW 
EXCLUSIVE MODE NOWAIT",
+    );
+    pg_and_generic().one_statement_parses_to(
+        "LOCK TABLE public.widgets NOWAIT",
+        "LOCK TABLE public.widgets NOWAIT",
+    );

Review Comment:
   Yes, done.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to