LucaCappelletti94 commented on code in PR #2062:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/pull/2062#discussion_r2419725162


##########
src/parser/mod.rs:
##########
@@ -7929,22 +7929,22 @@ impl<'a> Parser<'a> {
         loop {
             if self.parse_keyword(Keyword::CONSTRAINT) {
                 let name = Some(self.parse_identifier()?);
-                if let Some(option) = self.parse_optional_column_option()? {
+                if let Some(option) = 
self.parse_optional_column_option(&col_name)? {

Review Comment:
   You will note that it is the same change needed for PR 
https://github.com/apache/datafusion-sqlparser-rs/pull/2064, which I did 
separately but the goal is identical - to standardize the structs used to 
represent constraints in the columns and table.



-- 
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