kevin-xw / rock-php

Automatically exported from code.google.com/p/rock-php
0 stars 0 forks source link

Unable to query fields that are string numerics #228

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an object that has a field named as an integer (not an actual 
integer, but a numeric string such as "2").
2. Try querying on that field and you will not be able to retrieve the record.
3.

What is the expected output? What do you see instead?
Expecting to find a record, but does not

RockMongo Version (1.1.0, ...)
1.1.2

Operation System (Windows/CentOS, ...)
MacOS 10.7.5

PHP Version (5.1.6, ...)
5.4.6

php_mongo Version (1.0.9, ...)
1.2.6

MongoDB version (1.8.5, ...)
2.2.0-x86_64

Please provide any additional information below.
The same query performed programmatically (via a php script written by me or 
via other mongo GUIs) actually work. This means that somewhere the query 
information gets changed before being fed to Mongo. I also tried the query in 
many other ways, such as {"2" : "RESULT"} {'2' : "RESULT"} {2 : "RESULT"} etc. 
but it doesn't work.

Original issue reported on code.google.com by skofic on 23 Oct 2012 at 12:59

GoogleCodeExporter commented 9 years ago
Fixed in git repository, you can download latest build from 
    https://github.com/iwind/rockmongo/archive/master.zip 
or clone source from
   https://github.com/iwind/rockmongo.git

Original comment by iwind....@gmail.com on 25 Nov 2012 at 3:11