rails-bigint-pk icon indicating copy to clipboard operation
rails-bigint-pk copied to clipboard

Add MySQL 5.7 support.

Open PATROMO opened this issue 9 years ago • 3 comments

Mysql2::Error: All parts of a PRIMARY KEY must be NOT NULL.

PATROMO avatar Nov 12 '15 16:11 PATROMO

@ROMOPAT tests seem to have some problems?

hjdivad avatar Nov 12 '15 17:11 hjdivad

Is that syntax backwards compatible? It looks like there are duplicate keys, but it might be a testing issues.

/home/travis/.rvm/gems/ruby-2.1.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `query': Mysql2::Error: Duplicate entry '2147483647' for key 'PRIMARY': insert into empires values(2147483648) (ActiveRecord::RecordNotUnique)

acook avatar Nov 12 '15 18:11 acook

The tests had gotten rusty since the last time they were run. I got them passing then merged these commits and fixed the test breakage. @ROMOPAT please give the rails3 branch a whirl and if it looks good to you I'll release it.

caboteria avatar Nov 16 '15 03:11 caboteria