Merge ~lvoytek/ubuntu/+source/ruby-mysql2:restore-datetime-query-test-jammy into ubuntu/+source/ruby-mysql2:ubuntu/jammy-devel

Proposed by Lena Voytek
Status: Merged
Approved by: git-ubuntu bot
Approved revision: not available
Merged at revision: 65b350df9e858c793895c2d7319696665afde939
Proposed branch: ~lvoytek/ubuntu/+source/ruby-mysql2:restore-datetime-query-test-jammy
Merge into: ubuntu/+source/ruby-mysql2:ubuntu/jammy-devel
Diff against target: 68 lines (+8/-38)
3 files modified
debian/changelog (+8/-0)
debian/patches/series (+0/-1)
dev/null (+0/-37)
Reviewer Review Type Date Requested Status
git-ubuntu bot Approve
Lucas Kanashiro (community) Approve
Canonical Server Reporter Pending
Review via email: mp+426650@code.launchpad.net

Description of the change

Reverting autopkgtest patch for datetime and time since the changed behavior was fixed in mysql 8.0.29. This was fixed in kinetic in 0.5.3-3ubuntu5.

PPA: ppa:lvoytek/ruby-mysql2-revert-datetime-test-change-jammy

To post a comment you must log in.
Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Thanks for the MP Lena. I added an inline comment about the changelog entry. Other than that, everything LGTM.

review: Approve
Revision history for this message
git-ubuntu bot (git-ubuntu-bot) wrote :

Approvers: lucaskanashiro, lvoytek
Uploaders: lucaskanashiro
MP auto-approved

review: Approve
Revision history for this message
Lena Voytek (lvoytek) wrote :

updated, thanks!

Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Lena, I'll be waiting for the SRU bug template to sponsor this upload for you. Let me know once it is ready.

Revision history for this message
Lena Voytek (lvoytek) wrote :

Alright, I added in the SRU template to the bug report. Thanks for sponsoring

Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Package uploaded:

Uploading ruby-mysql2_0.5.3-3ubuntu4.22.04.1.dsc
Uploading ruby-mysql2_0.5.3.orig.tar.gz
Uploading ruby-mysql2_0.5.3-3ubuntu4.22.04.1.debian.tar.xz
Uploading ruby-mysql2_0.5.3-3ubuntu4.22.04.1_source.buildinfo
Uploading ruby-mysql2_0.5.3-3ubuntu4.22.04.1_source.changes

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 9ba329a..b5c9f06 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,11 @@
6+ruby-mysql2 (0.5.3-3ubuntu4.22.04.1) jammy; urgency=medium
7+
8+ * d/p/adjust-test-acc-to-mysql-8.0.28-change.patch: Remove file to restore
9+ original test setup since functionality was fixed for Time and
10+ DateTime query's with 'SELECT ?' in mysql 8.0.29 (LP: #1981343)
11+
12+ -- Lena Voytek <lena.voytek@canonical.com> Mon, 11 Jul 2022 08:49:58 -0700
13+
14 ruby-mysql2 (0.5.3-3ubuntu4) jammy; urgency=medium
15
16 * d/p/adjust-test-acc-to-mysql-8.0.28-change.patch:
17diff --git a/debian/patches/adjust-test-acc-to-mysql-8.0.28-change.patch b/debian/patches/adjust-test-acc-to-mysql-8.0.28-change.patch
18deleted file mode 100644
19index c1dea77..0000000
20--- a/debian/patches/adjust-test-acc-to-mysql-8.0.28-change.patch
21+++ /dev/null
22@@ -1,37 +0,0 @@
23-Description: Adjust tests according to mysql-8.0/8.0.28
24- behavioral change. MySQL now returns a String instead
25- of a DateTime object when called with "SELECT ? AS a"
26- and a parameter of MYSQL_TYPE_DATETIME.
27-Author: Utkarsh Gupta <utkarsh@ubuntu.com>
28-Origin: vendor
29-Bug: https://github.com/brianmario/mysql2/issues/1243
30-Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/mysql-8.0/+bug/1961617
31-Forwarded: https://github.com/brianmario/mysql2/issues/1243
32-Last-Update: 2022-02-23
33-
34---- a/spec/mysql2/statement_spec.rb
35-+++ b/spec/mysql2/statement_spec.rb
36-@@ -1,4 +1,5 @@
37- require './spec/spec_helper.rb'
38-+require 'time'
39-
40- RSpec.describe Mysql2::Statement do
41- before :each do
42-@@ -165,7 +166,7 @@
43- statement = @client.prepare('SELECT ? AS a')
44- result = statement.execute(now)
45- # microseconds is six digits after the decimal, but only test on 5 significant figures
46-- expect(result.first['a'].strftime('%F %T.%5N %z')).to eql(now.strftime('%F %T.%5N %z'))
47-+ expect(Time.parse(result.first['a']).strftime('%F %T.%5N %z')).to eql(now.strftime('%F %T.%5N %z'))
48- end
49-
50- it "should prepare DateTime values with microseconds" do
51-@@ -173,7 +174,7 @@
52- statement = @client.prepare('SELECT ? AS a')
53- result = statement.execute(now)
54- # microseconds is six digits after the decimal, but only test on 5 significant figures
55-- expect(result.first['a'].strftime('%F %T.%5N %z')).to eql(now.strftime('%F %T.%5N %z'))
56-+ expect(Time.parse(result.first['a']).strftime('%F %T.%5N %z')).to eql(now.strftime('%F %T.%5N %z'))
57- end
58-
59- it "should tell us about the fields" do
60diff --git a/debian/patches/series b/debian/patches/series
61index b9702e0..11094cb 100644
62--- a/debian/patches/series
63+++ b/debian/patches/series
64@@ -7,4 +7,3 @@ mysql-8.0.patch
65 skip-more-tests.patch
66 fix-configuration.patch
67 skip-test-that-depends-on-server.patch
68-adjust-test-acc-to-mysql-8.0.28-change.patch

Subscribers

People subscribed via source and target branches