Guest User

Untitled

a guest
Jan 22nd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 KB | None | 0 0
  1. [yahonda@li1710-178 activerecord (master)]$ ARCONN=mysql2 bundle exec ruby -w -Itest test/cases/adapters/mysql2/mysql2_adapter_test.rb -n test_errors_for_bigint_fks_on_integer_pk_table
  2. Using mysql2
  3. Run options: -n test_errors_for_bigint_fks_on_integer_pk_table --seed 55632
  4.  
  5. # Running:
  6.  
  7. F
  8.  
  9. Failure:
  10. Mysql2AdapterTest#test_errors_for_bigint_fks_on_integer_pk_table [test/cases/adapters/mysql2/mysql2_adapter_test.rb:62]:
  11. [ActiveRecord::MismatchedForeignKey] exception expected, not
  12. Class: <ActiveRecord::StatementInvalid>
  13. Message: <"Mysql2::Error: Referencing column 'old_car_id' and referenced column 'id' in foreign key constraint 'fk_rails_9f49f34f36' are incompatible.">
  14. ---Backtrace---
  15. /home/yahonda/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/mysql2-0.5.2/lib/mysql2/client.rb:131:in `_query'
  16. /home/yahonda/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/mysql2-0.5.2/lib/mysql2/client.rb:131:in `block in query'
  17. /home/yahonda/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/mysql2-0.5.2/lib/mysql2/client.rb:130:in `handle_interrupt'
  18. /home/yahonda/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/mysql2-0.5.2/lib/mysql2/client.rb:130:in `query'
  19. /home/yahonda/git/rails/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:181:in `block (2 levels) in execute'
  20. /home/yahonda/git/rails/activesupport/lib/active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'
  21. /home/yahonda/git/rails/activesupport/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
  22. /home/yahonda/git/rails/activesupport/lib/active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads'
  23. /home/yahonda/git/rails/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:180:in `block in execute'
  24. /home/yahonda/git/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:641:in `block (2 levels) in log'
  25. /home/yahonda/.rbenv/versions/2.6.0/lib/ruby/2.6.0/monitor.rb:230:in `mon_synchronize'
  26. /home/yahonda/git/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:640:in `block in log'
  27. /home/yahonda/git/rails/activesupport/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
  28. /home/yahonda/git/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:631:in `log'
  29. /home/yahonda/git/rails/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:179:in `execute'
  30. /home/yahonda/git/rails/activerecord/lib/active_record/connection_adapters/mysql/database_statements.rb:39:in `execute'
  31. /home/yahonda/git/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb:977:in `add_foreign_key'
  32. test/cases/adapters/mysql2/mysql2_adapter_test.rb:64:in `block in test_errors_for_bigint_fks_on_integer_pk_table'
  33. ---------------
  34.  
  35.  
  36. rails test test/cases/adapters/mysql2/mysql2_adapter_test.rb:59
  37.  
  38.  
  39.  
  40. Finished in 0.026840s, 37.2580 runs/s, 37.2580 assertions/s.
  41. 1 runs, 1 assertions, 1 failures, 0 errors, 0 skips
  42. [yahonda@li1710-178 activerecord (master)]$ mysql -uroot
  43. Welcome to the MySQL monitor. Commands end with ; or \g.
  44. Your MySQL connection id is 566
  45. Server version: 8.0.14 MySQL Community Server - GPL
  46.  
  47. Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
  48.  
  49. Oracle is a registered trademark of Oracle Corporation and/or its
  50. affiliates. Other names may be trademarks of their respective
  51. owners.
  52.  
  53. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  54.  
  55. mysql> quit
  56. Bye
  57. [yahonda@li1710-178 activerecord (master)]$
Add Comment
Please, Sign In to add comment