Skip to content

Commit

Permalink
Add SQL_TINYINT and SQL_BIGINT to %SQL::Translator::Schema::Field::ty…
Browse files Browse the repository at this point in the history
…pe_mapping

SQL_BIGINT was added in DBI 1.54, so bump the dependency.
  • Loading branch information
Songmu authored and ilmari committed Sep 29, 2013
1 parent df1a7d2 commit cf915bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* SQLite support for SET NULL, SET DEFAULT and NO ACTION in FK clauses
* Clean up properly after Parser::DBI::PostgreSQL tests
* Fix typos in error messages
* Add SQL_TINYINT and SQL_BIGINT to the type map in
SQL::Translator::Schema::Field

# ----------------------------------------------------------
# 0.11016 2012-10-09
Expand Down
2 changes: 1 addition & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ my $deps = {
'Digest::SHA' => '0',
'Carp::Clan' => '0',
'Parse::RecDescent' => '1.967009',
'DBI' => '0',
'DBI' => '1.54',
'File::ShareDir' => '1.0',
'Moo' => '1.000003',
'Package::Variant' => '1.001001',
Expand Down
3 changes: 2 additions & 1 deletion lib/SQL/Translator/Schema/Field.pm
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ our %type_mapping = (
integer => SQL_INTEGER,
int => SQL_INTEGER,

tinyint => SQL_TINYINT,
smallint => SQL_SMALLINT,
bigint => 9999, # DBI doesn't export a constant for this. Le suck
bigint => SQL_BIGINT,

double => SQL_DOUBLE,

Expand Down

0 comments on commit cf915bd

Please sign in to comment.