Skip to content

Commit 882f2cc

Browse files
Alexandre Dutraolim7t
authored andcommitted
Fix failing test + small enhancement to javadoc.
1 parent caa8f83 commit 882f2cc

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

driver-core/src/main/java/com/datastax/driver/core/querybuilder/QueryBuilder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ public static Truncate truncate(TableMetadata table) {
227227
*
228228
* @param columnName the column name to quote.
229229
* @return the quoted column name.
230+
* @see Metadata#quote(String)
230231
*/
231232
public static String quote(String columnName) {
232233
return Metadata.quote(columnName);

driver-core/src/test/java/com/datastax/driver/core/querybuilder/QueryBuilderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ public void should_quote_complex_column_names() {
865865
public void should_quote_column_names_with_escaped_quotes() {
866866
// A column name can include quotes as long as it is escaped with another set of quotes, so "foo""bar" is a valid name.
867867
String query = "SELECT * FROM foo WHERE \"foo \"\" bar\"=1;";
868-
Statement statement = select().from("foo").where(eq(quote("foo \"\" bar"), 1));
868+
Statement statement = select().from("foo").where(eq(quote("foo \" bar"), 1));
869869

870870
assertThat(statement.toString()).isEqualTo(query);
871871
}

0 commit comments

Comments
 (0)