-
Notifications
You must be signed in to change notification settings - Fork 173
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
PG::Error: ERROR: syntax error #59
Comments
Postgres does not like quotes
|
It has to do with #44, which fixed an issue in mysql. if you need this soon, would you be willing to send a patch? |
Can look into it. Would a condition on the db-adapter be fine enough?
|
Will lock for a nicer solution first, will come back when i found out more. |
We should be able to use |
Fixed the quoting issue, but locks like there is an other issue. |
Was getting this syntax error. Switched my gemfile to use github master and now I'm getting another error: 2.0.0-p0 :002 > Source.fetch_by_name('YOUTE') (0.8ms) SELECT "id" FROM "sources" WHERE "name" = 'YOUTE' LIMIT 1 => nil 2.0.0-p0 :003 > Source.fetch_by_name('YOUTUBE') Source Load (0.7ms) SELECT "sources".* FROM "sources" WHERE "sources"."id" = 1 LIMIT 1 (0.5ms) SELECT "asset_details".id FROM "asset_details" WHERE "asset_details"."source_id" = 1 NoMethodError: undefined method `tag=' for # from /Users/trendsettermm/.rvm/gems/ruby-2.0.0-p0/gems/delayed_job-4.0.0/lib/delayed/psych_ext.rb:6:in `encode_with_override' from /Users/trendsettermm/.bundler/ruby/2.0.0/identity_cache-6d5fabc55cbd/lib/identity_cache/query_api.rb:140:in `coder_from_record' from /Users/trendsettermm/.bundler/ruby/2.0.0/identity_cache-6d5fabc55cbd/lib/identity_cache/query_api.rb:36:in `block (2 levels) in fetch_by_id' from /Users/trendsettermm/.bundler/ruby/2.0.0/identity_cache-6d5fabc55cbd/lib/identity_cache.rb:76:in `fetch' from /Users/trendsettermm/.bundler/ruby/2.0.0/identity_cache-6d5fabc55cbd/lib/identity_cache/query_api.rb:36:in `block in fetch_by_id' from /Users/trendsettermm/.bundler/ruby/2.0.0/identity_cache-6d5fabc55cbd/lib/identity_cache/query_api.rb:161:in `require_if_necessary' from /Users/trendsettermm/.bundler/ruby/2.0.0/identity_cache-6d5fabc55cbd/lib/identity_cache/query_api.rb:34:in `fetch_by_id' from /Users/trendsettermm/.bundler/ruby/2.0.0/identity_cache-6d5fabc55cbd/lib/identity_cache/configuration_dsl.rb:190:in `identity_cache_single_value_dynamic_fetcher' from /Users/trendsettermm/.bundler/ruby/2.0.0/identity_cache-6d5fabc55cbd/lib/identity_cache/configuration_dsl.rb:57:in `fetch_by_name' from (irb):3 from /Users/trendsettermm/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.13/lib/rails/commands/console.rb:47:in `start' from /Users/trendsettermm/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.13/lib/rails/commands/console.rb:8:in `start' from /Users/trendsettermm/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.13/lib/rails/commands.rb:41:in `' from script/rails:6:in `require' from script/rails:6:in `' |
Same issue for me, it seems to be caused by delayed_job. |
Maybe i found a fix from delayed_job issues pages collectiveidea/delayed_job#435 |
@link82 did that solve anything for you? It didn't do it for me ): |
# dj_identity_cache_fix.rb
# require in initializers/application.rb
class ::Hash
attr_accessor :tag
end This solved the error, but I'm not sure of any side effects this might cause.. Hopefully a real solution arises so I can cut out the shady monkey patch. I feel so dirty right now. |
yep! It worked for me. Hope it helps |
Just updated identity_cache on a project to 0.0.3
Received following error (Worked fine with 0.0.2):
The text was updated successfully, but these errors were encountered: