-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SQL: Return correct catalog separator in JDBC (#33670)
JDBC DatabaseMetadata returns correct separator (:) for catalog/cluster names. Fix #33654 (cherry picked from commit 60ab4f9)
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...l/jdbc/src/test/java/org/elasticsearch/xpack/sql/jdbc/jdbc/JdbcDatabaseMetaDataTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
package org.elasticsearch.xpack.sql.jdbc.jdbc; | ||
|
||
import org.elasticsearch.test.ESTestCase; | ||
|
||
public class JdbcDatabaseMetaDataTests extends ESTestCase { | ||
|
||
private JdbcDatabaseMetaData md = new JdbcDatabaseMetaData(null); | ||
|
||
public void testSeparators() throws Exception { | ||
assertEquals(":", md.getCatalogSeparator()); | ||
assertEquals("\"", md.getIdentifierQuoteString()); | ||
assertEquals("\\", md.getSearchStringEscape()); | ||
|
||
} | ||
} |