Re: [PR] Ignore escaped LIKE wildcards in MySQL [datafusion-sqlparser-rs]

2025-02-28 Thread via GitHub
iffyio merged PR #1735: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1735 -- 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: github-unsubscr

Re: [PR] Ignore escaped LIKE wildcards in MySQL [datafusion-sqlparser-rs]

2025-02-27 Thread via GitHub
iffyio commented on code in PR #1735: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1735#discussion_r1974849855 ## src/dialect/mod.rs: ## @@ -201,6 +201,33 @@ pub trait Dialect: Debug + Any { false } +/// Determine whether the dialect strips th

Re: [PR] Ignore escaped LIKE wildcards in MySQL [datafusion-sqlparser-rs]

2025-02-24 Thread via GitHub
mvzink commented on code in PR #1735: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1735#discussion_r1967950847 ## tests/sqlparser_mysql.rs: ## @@ -2530,6 +2530,16 @@ fn parse_rlike_and_regexp() { } } +#[test] +fn parse_like_with_escape() { +mysql().ve

Re: [PR] Ignore escaped LIKE wildcards in MySQL [datafusion-sqlparser-rs]

2025-02-22 Thread via GitHub
iffyio commented on code in PR #1735: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1735#discussion_r1966682470 ## tests/sqlparser_mysql.rs: ## @@ -2530,6 +2530,16 @@ fn parse_rlike_and_regexp() { } } +#[test] +fn parse_like_with_escape() { +mysql().ve

Re: [PR] Ignore escaped LIKE wildcards in MySQL [datafusion-sqlparser-rs]

2025-02-22 Thread via GitHub
mvzink commented on code in PR #1735: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1735#discussion_r1966627492 ## tests/sqlparser_mysql.rs: ## @@ -2530,6 +2530,16 @@ fn parse_rlike_and_regexp() { } } +#[test] +fn parse_like_with_escape() { +mysql().ve

Re: [PR] Ignore escaped LIKE wildcards in MySQL [datafusion-sqlparser-rs]

2025-02-22 Thread via GitHub
mvzink commented on code in PR #1735: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1735#discussion_r1966627492 ## tests/sqlparser_mysql.rs: ## @@ -2530,6 +2530,16 @@ fn parse_rlike_and_regexp() { } } +#[test] +fn parse_like_with_escape() { +mysql().ve

Re: [PR] Ignore escaped LIKE wildcards in MySQL [datafusion-sqlparser-rs]

2025-02-21 Thread via GitHub
iffyio commented on code in PR #1735: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1735#discussion_r1966454048 ## tests/sqlparser_mysql.rs: ## @@ -2530,6 +2530,16 @@ fn parse_rlike_and_regexp() { } } +#[test] +fn parse_like_with_escape() { +mysql().ve

[PR] Ignore escaped LIKE wildcards in MySQL [datafusion-sqlparser-rs]

2025-02-20 Thread via GitHub
mvzink opened a new pull request, #1735: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1735 MySQL has a special case for escaped LIKE wildcards appearing in string literals: the escaping is ignored, whereas normally for any other (non-special) character, the backslash would be