ruby-mysql 2.9.1 → 2.9.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of ruby-mysql might be problematic. Click here for more details.

Files changed (4) hide show
  1. data/ChangeLog +5 -0
  2. data/README.rdoc +1 -1
  3. data/lib/mysql.rb +1 -1
  4. metadata +2 -2
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2010-01-17 TOMITA Masahiro <tommy@tmtm.org>
2
+
3
+ * lib/mysql.rb (Mysql#errno): Fix: Mysql#errno's default value
4
+ should be 0.
5
+
1
6
  2010-01-16 TOMITA Masahiro <tommy@tmtm.org>
2
7
 
3
8
  * lib/mysql.rb (Mysql#escape_string): raise error for unsafe
@@ -10,7 +10,7 @@ MySQL connector for Ruby.
10
10
 
11
11
  === Gem Installation
12
12
 
13
- gem install -v 2.9 ruby-mysql
13
+ gem install ruby-mysql-v 2.9.2
14
14
 
15
15
  == Features/Problems
16
16
 
@@ -220,7 +220,7 @@ class Mysql
220
220
  # === Return
221
221
  # [Integer] last error number
222
222
  def errno
223
- @last_error && @last_error.errno
223
+ @last_error ? @last_error.errno : 0
224
224
  end
225
225
 
226
226
  # === Return
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-mysql
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.1
4
+ version: 2.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - tommy
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-16 00:00:00 +09:00
12
+ date: 2010-01-22 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies: []
15
15