lib/knj/knjdb/drivers/mysql/knjdb_mysql_tables.rb in knjrbfw-0.0.74 vs lib/knj/knjdb/drivers/mysql/knjdb_mysql_tables.rb in knjrbfw-0.0.75

- old
+ new

@@ -287,23 +287,23 @@ sql << ", " end end sql << " UNIQUE" if index_data["unique"] - sql << " INDEX #{db.escape_col}#{db.esc_col(index_data["name"])}#{db.escape_col}" + sql << " INDEX `#{db.esc_col(index_data["name"])}`" if args[:on_table] or !args.key?(:on_table) - sql << " ON #{db.escape_table}#{db.esc_table(args[:table_name])}#{db.escape_table}" + sql << " ON `#{db.esc_table(args[:table_name])}`" end sql << " (" first = true index_data["columns"].each do |col_name| sql << ", " if !first first = false if first - sql << "#{db.escape_col}#{db.esc_col(col_name)}#{db.escape_col}" + sql << "`#{db.esc_col(col_name)}`" end sql << ")" if !args[:return_sql] \ No newline at end of file