Subject: | Doesn't handle arrayref size parameter |
Data types with multidimensional sizes (e.g. decimal) show up like
"decimal(ARRAY(0x932df0))", rather than "decimal(12,2)". Attached is a
patch for this.
Subject: | multidimentsional-sizes.diff |
commit 295e7dcf46df48f27b61842f2c6f74aa471b3da6
Author: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Date: 2009-04-07 13:55:33 +0100
Handle multidimensional sizes
diff --git a/templates/column_type.tt2 b/templates/column_type.tt2
index 4fa3a43..7bbd125 100644
--- a/templates/column_type.tt2
+++ b/templates/column_type.tt2
@@ -1,6 +1,6 @@
[%- FILTER collapse %]
[% col.data_type -%]
- [%- IF col.exists( 'size' ) AND col.size %]([% col.size %])[% END %]
+ [%- IF col.exists( 'size' ) AND col.size %]([% col.size.join(',') %])[% END %]
[%# col.exists is to keep .size from being interpreted as a vmethod #%]
[% END -%]
[%# $Id$ #%]