Comments (5)
Just a curiosity, what happens if you include the wildcards in your parameter instead of writing them into the query?
where('name like ?', '%Ferrar%');
from orientdb-odm.
Right now I can't test and it's been a while since I noticed this, but I
believe it translates into the following SQL:
WHERE name like %Ferrar%
Without the quotes surrounding the expression. Likewise said, I can't test
right now, and will only be able to next week, but I believe it it as I
just stated. I can be wrong, of course; I'll test properly as soon as I'm
able to :)
On Aug 21, 2014 1:49 AM, "alexgann" [email protected] wrote:
Just a curiosity, what happens if you include the wildcards in your
parameter instead of writing them into the query?'''
where('name like ?', '%Ferrar%');—
Reply to this email directly or view it on GitHub
#178 (comment)
.
from orientdb-odm.
I see that we might not have tests covering the case (
this is everything I could find about LIKEs)would you be able to provide a test case so that its easier for us to reproduce / fix?
cheers!
from orientdb-odm.
I just tested where('name like ?', '%Ferrar%');
and it returns as it should:
SELECT FROM Car WHERE name like "%Ferrar%"
This is common Doctrine and PDO behavior. See the following: http://stackoverflow.com/questions/3755718/doctrine2-dql-use-setparameter-with-wildcard-when-doing-a-like-comparison
Hope that helps!
from orientdb-odm.
Thanks man!
On Aug 21, 2014 6:22 PM, "alexgann" [email protected] wrote:
I just tested where('name like ?', '%Ferrar%'); and it returns as it
should:
SELECT FROM Car WHERE name like "%Ferrar%"This is common Doctrine and PDO behavior. See the following:
http://stackoverflow.com/questions/3755718/doctrine2-dql-use-setparameter-with-wildcard-when-doing-a-like-comparisonHope that helps!
—
Reply to this email directly or view it on GitHub
#178 (comment)
.
from orientdb-odm.
Related Issues (20)
- HTTP Client Separation HOT 3
- what happened to the github-wiki HOT 1
- problem with composer "symfony/finder": "2.1.*" HOT 3
- Connection or reconnection strange behavior in response time HOT 18
- Use maven to install OrientDB in travis HOT 3
- Use with Symfony2 HOT 18
- Question mark in a query causes a server parsing error HOT 3
- Question
- Use with Laravel 4 HOT 2
- [Proxy] Implement a proper ProxyFactory HOT 2
- [Caster] Cache usage
- SQL Update returns Cannot execute non idempotent command HOT 1
- Use as Symfony service HOT 9
- Fatal error: Class 'Doctrine\ODM\OrientDB\Mapper' not found HOT 8
- Binary protocol? HOT 12
- Tests failing HOT 5
- Fatal error: Call to a member function getId() on a non-object
- Active HOT 3
- State of the project HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orientdb-odm.