projects
/
DBIx-DBSchema.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0120876
)
missing test from git
master
author
Ivan Kohler
<ivan@freeside.biz>
Wed, 7 Sep 2022 23:36:12 +0000
(16:36 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Wed, 7 Sep 2022 23:36:12 +0000
(16:36 -0700)
t/mysql-text-default.t
[new file with mode: 0644]
patch
|
blob
diff --git a/t/mysql-text-default.t
b/t/mysql-text-default.t
new file mode 100644
(file)
index 0000000..
21d446a
--- /dev/null
+++ b/
t/mysql-text-default.t
@@ -0,0
+1,18
@@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+
+use Test::More tests => 2;
+
+use_ok 'DBIx::DBSchema::Column';
+
+my $col = DBIx::DBSchema::Column->new({
+ name => 'bar',
+ type => 'text',
+ default => "'bat'"
+});
+
+my $sql = $col->line("DBI:mysql:test");
+diag "Generated: $sql";
+unlike $sql, qr/default/i, "column bar doesn't have a default";
+