Displaying 1 result from an estimated 1 matches for "partners_recipients".
2005 Aug 15
0
RE: has_many_belongs_to_many insert issues [CLOSED]
...t.find(41234)
P.categories << aCategory
It throws an exception coming from SQL:
Execute
OLE error code:80040E14 in Microsoft OLE DB Provider for SQL Server
Line 1: Incorrect syntax near '')''.
HRESULT error code:0x80020009
Exception occurred.: INSERT INTO partners_recipients () VALUES ()
While it is obvious the SQL statement fails, I don''t understand why
Rails generated this buggy statement.
If I had the relationship by hand in SQL, I can perfectly issue a find
in Rails or retrieve it.
>From the source code, it looks like:
File:
activerecord-1.11.1.1962\...