mysql 2.9.0-x86-mswin32-60 → 2.9.1-x86-mswin32-60
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.
- data/History.txt +6 -0
- data/ext/mysql_api/mysql.c +3 -3
- data/lib/mysql/1.8/mysql_api.so +0 -0
- data/lib/mysql/1.9/mysql_api.so +0 -0
- data/lib/mysql/version.rb +1 -1
- data/test/test_mysql.rb +2 -2
- metadata +7 -7
data/History.txt
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
=== 2.9.1 / 2013-02-16 / Vacation time!
|
2
|
+
|
3
|
+
* Bugfixes:
|
4
|
+
* Use C89 comment style in source code. #13 [knu]
|
5
|
+
* Use ULL2NUM to return `affected_rows`. #11, #12 [cbandy]
|
6
|
+
|
1
7
|
=== 2.9.0 / 2012-11-17
|
2
8
|
|
3
9
|
DEPRECATION: Ruby 1.8.6 is no longer supported. Do not update your production
|
data/ext/mysql_api/mysql.c
CHANGED
@@ -445,7 +445,7 @@ static VALUE initialize(int argc, VALUE* argv, VALUE obj)
|
|
445
445
|
/* affected_rows() */
|
446
446
|
static VALUE affected_rows(VALUE obj)
|
447
447
|
{
|
448
|
-
return
|
448
|
+
return ULL2NUM(mysql_affected_rows(GetHandler(obj)));
|
449
449
|
}
|
450
450
|
|
451
451
|
#if MYSQL_VERSION_ID >= 32303
|
@@ -1268,7 +1268,7 @@ static VALUE stmt_affected_rows(VALUE obj)
|
|
1268
1268
|
my_ulonglong n;
|
1269
1269
|
check_stmt_closed(obj);
|
1270
1270
|
n = mysql_stmt_affected_rows(s->stmt);
|
1271
|
-
return
|
1271
|
+
return ULL2NUM(n);
|
1272
1272
|
}
|
1273
1273
|
|
1274
1274
|
#if 0
|
@@ -1890,7 +1890,7 @@ void Init_mysql_api(void)
|
|
1890
1890
|
for (i = 0; lib[i] != 0 && MYSQL_SERVER_VERSION[i] != 0; i++) {
|
1891
1891
|
if (lib[i] == '.') {
|
1892
1892
|
dots++;
|
1893
|
-
|
1893
|
+
/* we only compare MAJOR and MINOR */
|
1894
1894
|
if (dots == 2) break;
|
1895
1895
|
}
|
1896
1896
|
if (lib[i] != MYSQL_SERVER_VERSION[i]) {
|
data/lib/mysql/1.8/mysql_api.so
CHANGED
Binary file
|
data/lib/mysql/1.9/mysql_api.so
CHANGED
Binary file
|
data/lib/mysql/version.rb
CHANGED
data/test/test_mysql.rb
CHANGED
@@ -342,7 +342,7 @@ class TC_MysqlRes < Test::Unit::TestCase
|
|
342
342
|
assert_equal("t", f.table)
|
343
343
|
assert_equal(nil, f.def)
|
344
344
|
assert_equal(Mysql::Field::TYPE_STRING, f.type)
|
345
|
-
assert_equal(
|
345
|
+
assert_equal(30, f.length)
|
346
346
|
assert_equal(4, f.max_length)
|
347
347
|
assert_equal(0, f.flags)
|
348
348
|
assert_equal(0, f.decimals)
|
@@ -399,7 +399,7 @@ class TC_MysqlRes < Test::Unit::TestCase
|
|
399
399
|
"table" => "t",
|
400
400
|
"def" => nil,
|
401
401
|
"type" => Mysql::Field::TYPE_STRING,
|
402
|
-
"length" =>
|
402
|
+
"length" => 30,
|
403
403
|
"max_length" => 4,
|
404
404
|
"flags" => 0,
|
405
405
|
"decimals" => 0,
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mysql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 41
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 2.9.
|
9
|
+
- 1
|
10
|
+
version: 2.9.1
|
11
11
|
platform: x86-mswin32-60
|
12
12
|
authors:
|
13
13
|
- TOMITA Masahiro
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2013-02-16 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rdoc
|
@@ -56,11 +56,11 @@ dependencies:
|
|
56
56
|
requirements:
|
57
57
|
- - ~>
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
hash:
|
59
|
+
hash: 13
|
60
60
|
segments:
|
61
61
|
- 3
|
62
|
-
-
|
63
|
-
version: "3.
|
62
|
+
- 5
|
63
|
+
version: "3.5"
|
64
64
|
type: :development
|
65
65
|
version_requirements: *id003
|
66
66
|
description: |-
|