Re: Named bind variables and one-off queries

2013-11-20 Thread Mathieu D'Amours
OK, that answers my question, thank you! - Mathieu Le Nov 20, 2013 à 11:31 AM, Sylvain Lebresne a écrit : >> Since C* expect a list of values for bind variables in queries, in >> non-prepared queries the driver has no direct information about the >> expected order of named variables. Is there a

Re: Named bind variables and one-off queries

2013-11-20 Thread Mathieu D'Amours
Sorry about that, I'm making a driver for Cassandra binary protocol v2. When the driver sends QUERY queries (unprepared), those can contain only the CQL statement, or, if there are bind variables in the statement, the values for the bind variables can be sent along the statement. Recently, C* a

Re: Named bind variables and one-off queries

2013-11-20 Thread Sylvain Lebresne
> Since C* expect a list of values for bind variables in queries, in > non-prepared queries the driver has no direct information about the > expected order of named variables. Is there a way to reliably predict the > order of variable values C* will expect? No, not until you parse the statement d

Re: Named bind variables and one-off queries

2013-11-20 Thread Tyler Hobbs
On Wed, Nov 20, 2013 at 10:13 AM, Mathieu D'Amours wrote: > > Since C* expect a list of values for bind variables in queries, in > non-prepared queries the driver has no direct information about the > expected order of named variables. Is there a way to reliably predict the > order of variable val