use of org.springframework.data.relational.core.sql.SqlIdentifier in project spring-data-jdbc by spring-projects.
the class SqlIdentifierUnitTests method unquotedSimpleObjectIdentifier.
// DATAJDBC-386
@Test
public void unquotedSimpleObjectIdentifier() {
SqlIdentifier identifier = unquoted("someName");
String sql = identifier.toSql(BRACKETS_LOWER_CASE);
assertThat(sql).isEqualTo("someName");
assertThat(identifier.getReference(BRACKETS_LOWER_CASE)).isEqualTo("someName");
}
use of org.springframework.data.relational.core.sql.SqlIdentifier in project spring-data-jdbc by spring-projects.
the class SqlIdentifierUnitTests method unquotedMultipartObjectIdentifier.
// DATAJDBC-386
@Test
public void unquotedMultipartObjectIdentifier() {
SqlIdentifier identifier = SqlIdentifier.from(unquoted("some"), unquoted("name"));
String sql = identifier.toSql(IdentifierProcessing.ANSI);
assertThat(sql).isEqualTo("some.name");
}
Aggregations