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.
- data/lib/innodb/data_type.rb +6 -0
- data/lib/innodb/version.rb +1 -1
- metadata +1 -1
data/lib/innodb/data_type.rb
CHANGED
@@ -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
|
data/lib/innodb/version.rb
CHANGED