Open walla opened 12 years ago
The UUID property will end up in the database as a simple string, dm-types doesn't know about the uuid
column type.
sure. but just the same code works fine with MRI(1.9.2) and give such error on JRuby(1.6.7) datamapper 1.20
Hi! Got this error when using dm on jruby with UUID field type: ERROR: column "c$uuid" is of type uuid but expression is of type character varying Hint: You will need to rewrite or cast the expression. Position: 88 (code: 0, sql state: 42804, query: INSERT INTO "t$gp_events" ("c$uuid", "c$number", "c$s", "c$tx", "c$ac", "c$d") VALUES ('48cfcb78-5883-4d58-b81c-b4d2e6dd304b', '100487', '1.0', '1000000041342594267', '68473', '2012-04-23 16:03:14.000000 +04:00:00'), uri: )
my model:
everything fine on MRI