innodb_ruby 0.8.6 → 0.8.7
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/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