BUT, there is one thing that we are having some issues with, UUID support. I would imagine we are making a simple mistake with formatting but, something just doesn't seem right.
Here is an example, I'm getting a v4 UUID as a request parameter. I've tried using this as a string or a uuid, here I'm storing it after with the built-in UUID support:
var provider_id = app.helenus.UUID(req.body.provider_id);
Now, I turn around and construct a query string .. the README says to do this with ? but it seems like the code likes format strings, I've tried both but %s seems right (since ? gives me an error of too many parameters)
var query = "SELECT verification_fields FROM providers WHERE provider_id=%s";
var params = [provider_id];
This results in a HelenusInvalidRequestException
The ONLY way I've been able to get the query to work is to do build the query by appending and treating the provider_id as a string:
var provider_id = req.body.provider_id;
var query = "SELECT verification_fields FROM providers WHERE provider_id=" + provider_id;
var params = [];
Unfortunately, there are so may UUIDs in our schema that this is unreasonable.
There must be some very simple thing I'm missing :( Obviously you've thought about UUIDs since there are serializers and such, I can only guess I missed a blurb of information somewhere :(
Thoughts?
Paul Monday
Paul Monday
--
You received this message because you are subscribed to the Google Groups "helenus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to helenus+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
var params = [provider_id];
app.pool.cql(query, params, function (err, rows) {
if (err) {
return next(err, null);
}
I checked the provider_id and it is a valid UUID v4.