LucaCappelletti94 commented on code in PR #2250:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/2250#discussion_r3207500374
##########
tests/sqlparser_postgres.rs:
##########
@@ -8279,6 +8279,37 @@ fn parse_alter_function_and_aggregate() {
.is_err());
}
+#[test]
+fn parse_create_and_alter_text_search() {
+ // CREATE — one per object type
+ pg_and_generic().verified_stmt("CREATE TEXT SEARCH DICTIONARY d (template
= simple)");
+ pg_and_generic().verified_stmt("CREATE TEXT SEARCH CONFIGURATION c (copy =
english)");
+ pg_and_generic().verified_stmt("CREATE TEXT SEARCH TEMPLATE t (lexize =
dsimple_lexize)");
+ pg_and_generic().verified_stmt(
+ "CREATE TEXT SEARCH PARSER p (start = prsd_start, gettoken =
prsd_nexttoken, end = prsd_end, lextypes = prsd_lextype)",
+ );
+
+ // CREATE with quoted option key
+ pg_and_generic().verified_stmt("CREATE TEXT SEARCH TEMPLATE t (\"Init\" =
init_function)");
Review Comment:
The quoted text-search test cases now use raw string literals.
--
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]