You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by gi...@apache.org on 2025/12/10 11:53:45 UTC

(datafusion-sqlparser-rs) branch gh-readonly-queue/main/pr-2126-048bc8f09d569d223db36db577b18c7466d55005 created (now 0b1e0c35)

This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a change to branch gh-readonly-queue/main/pr-2126-048bc8f09d569d223db36db577b18c7466d55005
in repository https://gitbox.apache.org/repos/asf/datafusion-sqlparser-rs.git


      at 0b1e0c35 MSSQL: Add support for parenthesized stored procedure name in EXEC (#2126)

This branch includes the following new commits:

     new 0b1e0c35 MSSQL: Add support for parenthesized stored procedure name in EXEC (#2126)

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org


(datafusion-sqlparser-rs) 01/01: MSSQL: Add support for parenthesized stored procedure name in EXEC (#2126)

Posted by gi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch gh-readonly-queue/main/pr-2126-048bc8f09d569d223db36db577b18c7466d55005
in repository https://gitbox.apache.org/repos/asf/datafusion-sqlparser-rs.git

commit 0b1e0c35d956edd51bfa00c3a18c5c44ccd8343f
Author: Yoav Cohen <59...@users.noreply.github.com>
AuthorDate: Wed Dec 10 06:53:22 2025 -0500

    MSSQL: Add support for parenthesized stored procedure name in EXEC (#2126)
---
 src/parser/mod.rs         | 4 ++++
 tests/sqlparser_common.rs | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/src/parser/mod.rs b/src/parser/mod.rs
index c499829c..dc529945 100644
--- a/src/parser/mod.rs
+++ b/src/parser/mod.rs
@@ -17368,7 +17368,11 @@ impl<'a> Parser<'a> {
         {
             None
         } else {
+            let has_parentheses = self.consume_token(&Token::LParen);
             let name = self.parse_object_name(false)?;
+            if has_parentheses {
+                self.expect_token(&Token::RParen)?;
+            }
             Some(name)
         };
 
diff --git a/tests/sqlparser_common.rs b/tests/sqlparser_common.rs
index cfee2621..da8e7b49 100644
--- a/tests/sqlparser_common.rs
+++ b/tests/sqlparser_common.rs
@@ -12120,6 +12120,8 @@ fn parse_execute_stored_procedure() {
         }
         _ => unreachable!(),
     }
+    // Test optional parentheses around procedure name
+    ms_and_generic().one_statement_parses_to("EXEC ('name')", "EXECUTE 'name'");
 }
 
 #[test]


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org