Bugs item #27067, was opened at 2009-09-08 10: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: Closed
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')

----------------------------------------------------------------------

Comment By: Nick Sieger (nicksieger)
Date: 2009-09-08 14:02

Message:
Hi, we no longer use this tracker to track bugs here. Can you
please file a copy of this bug at
http://kenai.com/jira/browse/ACTIVERECORD_JDBC ?

Thanks!


----------------------------------------------------------------------

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

Reply via email to