Skip Menu |

This queue is for tickets about the DBD-AnyData CPAN distribution.

Report information
The Basics
Id: 78791
Status: open
Priority: 0/
Queue: DBD-AnyData

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

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



Subject: Can't handle empty columns in the first row
This program says "Execution ERROR: No such column 'col2'": #!/usr/bin/perl -wT use warnings; use strict; use diagnostics; use LWP::Simple; use DBI; my $dbh = DBI->connect('dbi:AnyData(RaiseError => 1):'); # Test $dbh->func('xxx', 'XML', [<DATA>], 'ad_import'); my $sth = $dbh->prepare('SELECT col1, col2 FROM xxx'); $sth->execute(); __DATA__ <table> <row row_id="1"><col1>C1</col1><col2></col2></row> <row row_id="2"><col1>C3</col1><col2>C4</col2></row> </table>
This is due to AnyData - it has a number of places where the code tests for truth and not defined. I'm working though the AnyData bugs at the moment, and will add this to the list - though I don't know enough about the code yet to promise that its fixable quickly.