class Innodb::DataType::VariableCharacterType
Attributes
name[R]
width[R]
Public Class Methods
new(base_type, modifiers, properties)
click to toggle source
# File lib/innodb/data_type.rb, line 207 def initialize(base_type, modifiers, properties) @width = modifiers[0] raise "Invalid width specification" unless modifiers.size == 1 @name = Innodb::DataType.make_name(base_type, modifiers, properties) end
Public Instance Methods
value(data)
click to toggle source
# File lib/innodb/data_type.rb, line 214 def value(data) # The SQL standard defines that VARCHAR fields should have end-spaces # stripped off. data.sub(/ +$/, "") end