Question

I know that cassandra does but what about Astyanax? And does it escape single quotes in values? Thx

Was it helpful?

Solution

Yes it does,

You can see an example here https://github.com/Netflix/astyanax/wiki/Cql-and-cql3

final String INSERT_STATEMENT = "INSERT INTO employees (empID, deptID, first_name,   last_name) VALUES (?, ?, ?, ?);";

result = keyspace
    .prepareQuery(CQL3_CF)
        .withCql(INSERT_STATEMENT)
    .asPreparedStatement()
        .withIntegerValue(222)
        .withIntegerValue(333)
        .withStringValue("Eric")
        .withStringValue("Cartman")
    .execute();
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top