Mercurial > pub > Impl
view Lib/IMPL/SQL/Schema/MySQL/CharType.pm @ 327:6cb0d4d325d7
sync
author | sergey |
---|---|
date | Thu, 30 May 2013 20:31:37 +0400 |
parents | 56364d0c4b4f |
children |
line wrap: on
line source
package IMPL::SQL::Schema::MySQL::CharType; use strict; use IMPL::Const qw(:prop); use IMPL::declare { require => { Exception => 'IMPL::Exception', ArgException => '-IMPL::InvalidArgumentException' }, base => [ 'IMPL::SQL::Schema::Type' => '@_' ], props => [ encoding => PROP_RO ] }; my @CHAR_TYPES = qw(VARCHAR CHAR); sub CTOR { my ($this) = @_; die ArgException->new(name => "The specified name is invalid", $this->name) unless grep uc($this->name) eq $_, @CHAR_TYPES; } 1;