Skip to content

Commit

Permalink
Correct explanation about identifiers in query builder manual
Browse files Browse the repository at this point in the history
"case-sensitive identifiers or case-insensitive strings" is incorrect,
because raw strings can be case sensitive too if they're quoted.
  • Loading branch information
olim7t committed Apr 5, 2019
1 parent 5ce6ffa commit 75a12e0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions manual/query_builder/README.md
Expand Up @@ -109,8 +109,8 @@ the query builder in your hot path**:
#### Identifiers

All fluent API methods use [CqlIdentifier] for schema element names (keyspaces, tables, columns...).
But, for convenience, there are also `String` overloads if you use case-insensitive identifiers (as
we recommend, see [Case sensitivity](../case_sensitivity) for more explanations).
But, for convenience, there are also `String` overloads that take the CQL form (as see [Case
sensitivity](../case_sensitivity) for more explanations).

For conciseness, we'll use the string-based versions for the examples in this manual.

Expand Down
4 changes: 2 additions & 2 deletions manual/query_builder/delete/README.md
@@ -1,8 +1,8 @@
## DELETE

To start a DELETE query, use one of the `deleteFrom` methods in [QueryBuilder]. There are several
variants depending on whether your table name is qualified, and whether you use case-sensitive
identifiers or case-insensitive strings:
variants depending on whether your table name is qualified, and whether you use
[identifiers](../../case_sensitivity/) or raw strings:

```java
import static com.datastax.oss.driver.api.querybuilder.QueryBuilder.*;
Expand Down
2 changes: 1 addition & 1 deletion manual/query_builder/insert/README.md
Expand Up @@ -2,7 +2,7 @@

To start an INSERT query, use one of the `insertInto` methods in [QueryBuilder]. There are
several variants depending on whether your table name is qualified, and whether you use
case-sensitive identifiers or case-insensitive strings:
[identifiers](../../case_sensitivity/) or raw strings:

```java
import static com.datastax.oss.driver.api.querybuilder.QueryBuilder.*;
Expand Down
4 changes: 2 additions & 2 deletions manual/query_builder/select/README.md
@@ -1,8 +1,8 @@
## SELECT

Start your SELECT with the `selectFrom` method in [QueryBuilder]. There are several variants
depending on whether your table name is qualified, and whether you use case-sensitive identifiers or
case-insensitive strings:
depending on whether your table name is qualified, and whether you use
[identifiers](../../case_sensitivity/) or raw strings:

```java
import static com.datastax.oss.driver.api.querybuilder.QueryBuilder.*;
Expand Down
4 changes: 2 additions & 2 deletions manual/query_builder/update/README.md
@@ -1,8 +1,8 @@
## UPDATE

To start an UPDATE query, use one of the `update` methods in [QueryBuilder]. There are several
variants depending on whether your table name is qualified, and whether you use case-sensitive
identifiers or case-insensitive strings:
variants depending on whether your table name is qualified, and whether you use
[identifiers](../../case_sensitivity/) or raw strings:

```java
import static com.datastax.oss.driver.api.querybuilder.QueryBuilder.*;
Expand Down

0 comments on commit 75a12e0

Please sign in to comment.