exwiw 0.4.5 → 0.4.6

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: d0b715388723c6553f40418e8f4cc9bcc0d2252b819acef3d80e3d17c92aad7d
4
- data.tar.gz: e3384bdfb99923cf0081d09f5c85b34f798b013760defec9e503dccd9f7153d7
3
+ metadata.gz: dac24d68af7c0c39949a11c810cccc14e6818ac0edb9198a3a6b846d2d81bcee
4
+ data.tar.gz: c4b111dc3dccc8940627b7dcabf2ea5633300eb5e670b52ec8683e78a2922040
5
5
  SHA512:
6
- metadata.gz: 5bad68b5a322e0e8ef31264ab48bf1143c0ac0ec6fba2313a9304404d586e1b098cbf973a9623c90ba47f52a6ecf30e90c0ce5a13ec0affa22620a765f52f336
7
- data.tar.gz: 7cd6b095feb5ad7907bda22f24160ef65479747d84aaac7816a3a91fdfb68b962f2e7a4f30acb81591a9f90c961a9720a4f94db9fe59622c20892912cc6852ac
6
+ metadata.gz: 15cdaa9351b32c3159f27a79204506f557825441d2c8253da5981d0e903504240963fcf279a34c28b02f084004f9d728499ee8fb3ea609a94b3583b72f8b8ce8
7
+ data.tar.gz: 7b7de3276484ce8bb97164f26aed9dc23f25f51736065c0f3f15337be49f82db322bbe16534fc77c0ad85fefd55fa1e825b25933b8c2f0e85e50694da6333f2f
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.4.6] - 2026-06-08
6
+
7
+ ### Fixed
8
+
9
+ - MySQL: INSERT statements now escape backslashes (`\` → `\\`) in string literals. Previously, values containing backslashes — such as JSON columns with `\"` sequences — were corrupted on restore because MySQL interprets `\` as an escape character in single-quoted strings. ([#85](https://github.com/heyinc/exwiw/pull/85))
10
+
5
11
  ## [0.4.5] - 2026-06-08
6
12
 
7
13
  ### Fixed
@@ -249,7 +249,8 @@ module Exwiw
249
249
  when nil
250
250
  "NULL"
251
251
  when String
252
- qv = escape_single_quote(value)
252
+ qv = value.gsub('\\') { '\\\\' }
253
+ qv = escape_single_quote(qv)
253
254
  "'#{qv}'"
254
255
  else
255
256
  value
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.5"
4
+ VERSION = "0.4.6"
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.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shia