Bugs item #27067, was opened at 2009-09-08 15:23
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=27067&group_id=2014
Category: AR-JDBC
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Michael Hier (tamaloa)
Assigned to: Nobody (None)
Summary: validates_uniqueness_of broken
Initial Comment:
Hope this is the right place :)
Using jRuby and jdbcsqlite3:
Trying to use validates_uniqueness_of :name in a model has no effect at all. It
is possible to create and save several records with the same name! Seems as if
the constructed sql-queries do not contain the actual field-string.
Example:
A query to a user model with unique :name would look like this
user_one.save
SELECT users.id FROM users WHERE (users.name = '')
INSERT INTO users (name, created_at, updated_at) VALUES('one', '2009-09-08
15:04:00', '2009-09-08 15:04:00')
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=27067&group_id=2014
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel