Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writer failing to quote escape datetime #62

Closed
garysweaver opened this issue Feb 25, 2014 · 1 comment
Closed

Writer failing to quote escape datetime #62

garysweaver opened this issue Feb 25, 2014 · 1 comment

Comments

@garysweaver
Copy link

SeedFu::Writer.write is writing an unquoted value for datetime, e.g.:

"something_happened_at"=>Fri, 05 Mar 2010 10:40:20 EST -05:00,

It is a datetime field, so not sure what is going on:

2.1.0p0 :001 > MyModel.columns_hash["some_field"].type
 => :datetime 
2.1.0p0 :002 > MyModel.find(123).something_happened_at
  MyModel Load (7.8ms)  SELECT "my_models".* FROM "my_models" WHERE "my_models"."id" = $1 LIMIT 1  [["id", 123]]
 => Fri, 05 Mar 2010 10:40:20 EST -05:00 
@garysweaver
Copy link
Author

Closing as duplicate of #43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant