Defect #32663

negative string size (or size too big)

Added by abdelrahman osama almost 2 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Issues
Target version:-
Resolution: Affected version:

Description

Hi,
when i run script (RAILS_ENV=production scl enable ea-ruby24 'bundle exec rake db:migrate') give me the below issue :

rake aborted!
ArgumentError: negative string size (or size too big)
/usr/local/rvm/gems/ruby-2.4.2/gems/activerecord-5.2.0/lib/active_record/connection_adapters/mysql2_adapter.rb:82:in `escape'
/usr/local/rvm/gems/ruby-2.4.2/gems/activerecord-5.2.0/lib/active_record/connection_adapters/mysql2_adapter.rb:82:in `quote_string'
/usr/local/rvm/gems/ruby-2.4.2/gems/activerecord-5.2.0/lib/active_record/connection_adapters/abstract/quoting.rb:166:in `_quote'
/usr/local/rvm/gems/ruby-2.4.2/gems/activerecord-5.2.0/lib/active_record/connection_adapters/abstract/quoting.rb:18:in `quote'
/usr/local/rvm/gems/ruby-2.4.2/gems/activerecord-5.2.0/lib/active_record/connection_adapters/mysql/schema_statements.rb:135:in `quoted_scope'
/usr/local/rvm/gems/ruby-2.4.2/gems/activerecord-5.2.0/lib/active_record/connection_adapters/mysql/schema_statements.rb:122:in `data_source_sql'
/usr/local/rvm/gems/ruby-2.4.2/gems/activerecord-5.2.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:61:in `table_exists?'
/usr/local/rvm/gems/ruby-2.4.2/gems/activerecord-5.2.0/lib/active_record/schema_migration.rb:22:in `table_exists?'
/usr/local/rvm/gems/ruby-2.4.2/gems/activerecord-5.2.0/lib/active_record/schema_migration.rb:26:in `create_table'
/usr/local/rvm/gems/ruby-2.4.2/gems/activerecord-5.2.0/lib/active_record/migration.rb:1187:in `initialize'
/usr/local/rvm/gems/ruby-2.4.2/gems/activerecord-5.2.0/lib/active_record/migration.rb:1036:in `new'
/usr/local/rvm/gems/ruby-2.4.2/gems/activerecord-5.2.0/lib/active_record/migration.rb:1036:in `up'
/usr/local/rvm/gems/ruby-2.4.2/gems/activerecord-5.2.0/lib/active_record/migration.rb:1011:in `migrate'
/usr/local/rvm/gems/ruby-2.4.2/gems/activerecord-5.2.0/lib/active_record/tasks/database_tasks.rb:172:in `migrate'
/usr/local/rvm/gems/ruby-2.4.2/gems/activerecord-5.2.0/lib/active_record/railties/databases.rake:60:in `block (2 levels) in <top (required)>'
/usr/local/rvm/gems/ruby-2.4.2/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.4.2/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.4.2/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)

Any Help

Also available in: Atom PDF