Dylan Smith
1a2bf3df0e
Test quoting integers when comparing a string column with integers.
...
An equality with a string column and integer like
SELECT * FROM `users` WHERE `login_token` = 0 LIMIT 1;
will match match any string that doesn't start with a digit in certain
databases, like mysql. Make sure we quote the integer to avoid this
problem in a database independant way.
2014-04-28 03:10:47 -04:00
Aaron Patterson
93d72131bc
add the casting node to the AST at build time
...
If we add the casting node to the ast at build time, then we can avoid
doing the lookup at visit time.
2014-03-24 16:26:09 -07:00
Aaron Patterson
425925b1c6
call the columns hash method
2013-03-14 22:22:45 -07:00
Aaron Patterson
c5f9fbf0d6
calling cache methods against the connection
2011-11-19 18:57:36 -08:00
Jon Leighton
79411322ae
Make it the responsibility of the connection to hold on to a visitor for generating SQL, rather than the TreeManager. (There is a related commit coming in Active Record.)
2011-08-08 23:23:51 +01:00
Aaron Patterson
e7cdaedb6b
cleaning up math operations on attributes
2011-03-07 08:35:48 -08:00
Aaron Patterson
8aa5d7a393
Merge remote branch 'stiff/master' into omg
...
* stiff/master:
implemented support for math operations in numeric attributes
2011-03-07 08:30:09 -08:00
Aaron Patterson
3cd905ee7b
use the cache mechanism in the connection pool rather than our own cache
2011-02-07 09:26:18 -08:00
Vladimir Meremyanin
2158d592c0
implemented support for math operations in numeric attributes
2011-01-29 14:40:39 +08:00
Aaron Patterson
424e39d688
adding proper columns to our fake table
2010-11-05 14:05:10 -07:00
Aaron Patterson
e42506f9ea
adding default limits when there is an offset for sqlite and mysql [ #5316 state:resolved]
2010-10-20 17:16:18 -07:00
Ryan Davis
e1ebe6e949
Fisting arel specs -- still needs tree_manager and cleanup
2010-10-18 15:41:21 -07:00