Skip to content

Conversation

jgadling
Copy link

@jgadling jgadling commented Jun 8, 2011

IN() queries currently only return one row per query value. This makes the feature unusable for non-pk/non-unique index queries. So this is a suggested fix.

@reyortsed
Copy link

treylane. could you give me a code example for using IN() queries? I dont see any documentation on it..

@jgadling
Copy link
Author

jgadling commented Jun 8, 2011

Er, perhaps I'm describing it incorrectly, but I'm referring to the multi-get feature implemented in this commit:
https://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL/commit/b4d3ab9d0e1f586ba5f6bf036cd3db7959137cfb

There are extra parameters supported by the client now, for example see the executeSingle definition here:
http://code.google.com/p/php-handlersocket/

@reyortsed
Copy link

HI Treylane. I understood you perfectly... I was going off-topic ... kinda ;)

What I really wanted was a perl example of execute_single using IN values.

I looked at the PHP example, tried to write the perl equivalent.....(I have no idea what to set for op etc.... I mean these dont have any meaning to IN() surely....... I get no errors from handlersocket.. but when I dump out the row... I just get uninitialized variable... so clearly something goes wrong cos I know my query should return something... as I can execute with op = in the normal fashion and get a result....

Cheers

//Steve

ahiguti added a commit that referenced this pull request Oct 3, 2011
@ahiguti ahiguti merged commit 06528ac into DeNA:master Oct 3, 2011
ahiguti added a commit that referenced this pull request Jan 23, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants