J-Bakuli commented on code in PR #13841:
URL: https://github.com/apache/ignite/pull/13841#discussion_r4679217244
##########
modules/indexing/src/test/java/org/apache/ignite/internal/processors/query/IgniteSqlSchemaIndexingTest.java:
##########
@@ -194,6 +200,206 @@ public void testSchemaEscapeAll() throws Exception {
ignite(0).destroyCache(cfgEsc.getName());
}
+ /**
+ * Tests that a schema name with a quote does not create SCHEMA_INJECTED,
+ * a row is readable through that schema, and destroying the cache drops
the schema.
+ *
+ * @throws Exception If failed.
+ */
+ @Test
+ public void testSchemaNameWithQuote() throws Exception {
+ startGrid(0);
+
+ String schemaName = "A\";CREATE TABLE PUBLIC.SCHEMA_INJECTED(ID
INT);--";
+
+ String quotedSchema = "\"" + schemaName.replace("\"", "\"\"") + "\"";
Review Comment:
Ilja, thank you, I have applied those changes
--
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]