innodb_ruby 0.8.6 → 0.8.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -181,6 +181,12 @@ class Innodb::DataType
181
181
  @width = modifiers.fetch(0, 1)
182
182
  @name = Innodb::DataType.make_name(base_type, modifiers, properties)
183
183
  end
184
+
185
+ def value(data)
186
+ # The SQL standard defines that CHAR fields should have end-spaces
187
+ # stripped off.
188
+ data.sub(/[ ]+$/, "")
189
+ end
184
190
  end
185
191
 
186
192
  class VariableCharacterType
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
 
3
3
  module Innodb
4
- VERSION = "0.8.6"
4
+ VERSION = "0.8.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: innodb_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: