exwiw 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '028047197ff7f7e93fdda9b7ca4ad934da9ac904c53bc7859da113f89710de23'
4
- data.tar.gz: 2e7ef72dd106f3133ab6ba35b752c5c961fb02da02b98ede71400285fc36a2e5
3
+ metadata.gz: d0b715388723c6553f40418e8f4cc9bcc0d2252b819acef3d80e3d17c92aad7d
4
+ data.tar.gz: e3384bdfb99923cf0081d09f5c85b34f798b013760defec9e503dccd9f7153d7
5
5
  SHA512:
6
- metadata.gz: f33e62a4df3f5bacfb20a20bb18defcb3e6296a404981afa4b5ace3ac2153fa58f408cbea8fbf5aea83da66dbec3513c49c16ae6670324cebf767cfe0894c870
7
- data.tar.gz: 2395aed648209edde5afa7a38bae47088e9327e562f42c166ec259d69aba270fb3689d3b472aeffdfbc185dc8b30501b2963e28c301d4f04b90c56b815ae65ba
6
+ metadata.gz: 5bad68b5a322e0e8ef31264ab48bf1143c0ac0ec6fba2313a9304404d586e1b098cbf973a9623c90ba47f52a6ecf30e90c0ce5a13ec0affa22620a765f52f336
7
+ data.tar.gz: 7cd6b095feb5ad7907bda22f24160ef65479747d84aaac7816a3a91fdfb68b962f2e7a4f30acb81591a9f90c961a9720a4f94db9fe59622c20892912cc6852ac
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.4.5] - 2026-06-08
6
+
7
+ ### Fixed
8
+
9
+ - MySQL: INSERT statements now backtick-quote table and column names. Previously, columns whose name is a MySQL reserved word (e.g. `key` in `active_storage_blobs`) caused syntax errors on restore. ([#83](https://github.com/heyinc/exwiw/pull/83))
10
+
5
11
  ## [0.4.4] - 2026-06-05
6
12
 
7
13
  ### Fixed
@@ -111,10 +111,10 @@ module Exwiw
111
111
  values = value_list.join(",\n")
112
112
 
113
113
  if table.rails_managed?
114
- "INSERT INTO #{table_name} VALUES\n#{values};"
114
+ "INSERT INTO `#{table_name}` VALUES\n#{values};"
115
115
  else
116
- column_names = table.columns.map(&:name).join(', ')
117
- "INSERT INTO #{table_name} (#{column_names}) VALUES\n#{values};"
116
+ column_names = table.columns.map { |c| "`#{c.name}`" }.join(', ')
117
+ "INSERT INTO `#{table_name}` (#{column_names}) VALUES\n#{values};"
118
118
  end
119
119
  end
120
120
 
data/lib/exwiw/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Exwiw
4
- VERSION = "0.4.4"
4
+ VERSION = "0.4.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exwiw
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shia