Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

Exception on retrieving geometry data in Rails 3.1 #1

Open
dazuma opened this issue Aug 15, 2011 · 0 comments
Open

Exception on retrieving geometry data in Rails 3.1 #1

dazuma opened this issue Aug 15, 2011 · 0 comments

Comments

@dazuma
Copy link
Member

dazuma commented Aug 15, 2011

This issue is just to track an external issue, seemingly a bug in the mysql gem.

Under Rails 3.1, any operation that retrieves geometry data fails with an exception:
ActiveRecord::StatementInvalid: TypeError: unknown buffer_type: 255

This happens because the mysql gem (as of version 2.8.1), in the binary protocol used by prepared statements, does not recognize the MYSQL_TYPE_GEOMETRY buffer type for return values.

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

No branches or pull requests

1 participant