Skip Menu |

This queue is for tickets about the DBICx-AutoDoc CPAN distribution.

Report information
The Basics
Id: 44843
Status: resolved
Priority: 0/
Queue: DBICx-AutoDoc

People
Owner: Nobody in particular
Requestors: ilmari+cpan [...] ilmari.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.04
Fixed in: (no value)



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$ #%]
On Tue Apr 07 08:58:36 2009, ilmari wrote: Show quoted text
> 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.
I really should have looked all the way through the queue before shipping :) This patch applied to version 0.07. -- www.jasonkohles.com