Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some problem with INSERT execute query, With set<int>. #46

Open
americanblond opened this issue Aug 20, 2014 · 0 comments
Open

Some problem with INSERT execute query, With set<int>. #46

americanblond opened this issue Aug 20, 2014 · 0 comments

Comments

@americanblond
Copy link

Hi,

I catched some strange exception when try to execute query, using firebrand.

I created table like this:

CREATE TABLE "LiveScoreSubscription" ("key" text PRIMARY KEY, "___class" text, "userId" text, "sportId" int, "leagueId" int, "eventGroupId" int, "scores" bigint, "scoresSet" set int);

And try to execute query via CQLSH like this:

INSERT INTO "LiveScoreSubscription" (key, "___class", "userId", "sportId", "leagueId", "eventGroupId", "scores", "scoresSet") VALUES ('1155668877', 'rdgdr', 'bz_halyna',4, 13, 35, 3321, {5,10,15});

And it works for me fine.

But when i tried to execude this query from my code like this:

"INSERT INTO LiveScoreSubscription ('key', '___class', 'userId', 'sportId', 'leagueId', 'eventGroupId', 'scores', 'scoresSet') VALUES (':key', ':class', ':userId',':sportId', ':leagueId', ':eventGroupId', ':scores', ':scoresSet');"

...

Set scoresSet = {1,2,3};

I catched that strange Exception:

13:04:19,356 ERROR stderr Caused by: cns.exceptions.DAOException: me.prettyprint.hector.api.exceptions.HInvalidRequestException: InvalidRequestException(why:cannot parse '{
1,2,3}' as hex bytes)

Can you help me please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant