lukasz-antoniak opened a new pull request, #2056:
URL: https://github.com/apache/cassandra-java-driver/pull/2056

   JIRA link: 
[CASSJAVA-103](https://issues.apache.org/jira/browse/CASSJAVA-103).
   
   In all schema builder classes (e.g. `DefaultCreateTable`), column 
identifiers are rendered using `CqlIdentifier.asCql(true)` method. This was not 
the case in `DefaultCreateIndex`, which led to missing quotes in CQL statement.
   
   ```
   createIndex(CqlIdentifier.fromInternal("bAr"))
      .onTable(CqlIdentifier.fromInternal("xY"))
      .andColumn(CqlIdentifier.fromInternal("aB"))
   ```
   Result: `CREATE INDEX "bAr" ON "xY" (aB)`
   Expected: `CREATE INDEX "bAr" ON "xY" ("aB")`
   
   Added test in `CreateTableTest` to make sure same behaviour applies there.


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to