Skip to content

Instantly share code, notes, and snippets.

@bcardarella
Created July 24, 2015 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcardarella/e969dc704bfcc3798b14 to your computer and use it in GitHub Desktop.
Save bcardarella/e969dc704bfcc3798b14 to your computer and use it in GitHub Desktop.
1) test rename column (Ecto.Integration.MigrationTest)
integration_test/sql/migration.exs:260
** (Mariaex.Error) (1064): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SET @rename_stmt = concat('ALTER TABLE `rename_col_migration` CHANGE COLUMN `to_' at line 2
stacktrace:
(ecto) lib/ecto/adapters/sql.ex:222: Ecto.Adapters.SQL.query/5
(ecto) lib/ecto/adapters/mysql.ex:91: Ecto.Adapters.MySQL.execute_ddl/3
integration_test/sql/migration.exs:127: Ecto.Integration.MigrationTest.RenameColumnMigration.up/0
(stdlib) timer.erl:194: :timer.tc/3
(ecto) lib/ecto/migration/runner.ex:22: Ecto.Migration.Runner.run/6
(ecto) lib/ecto/migrator.ex:113: Ecto.Migrator.attempt/6
(ecto) lib/ecto/migrator.ex:62: anonymous fn/4 in Ecto.Migrator.do_up/4
(ecto) lib/ecto/migrator.ex:55: Ecto.Migrator.up/4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment