Skip Menu |

This queue is for tickets about the SQL-Statement CPAN distribution.

Report information
The Basics
Id: 70226
Status: resolved
Priority: 0/
Queue: SQL-Statement

People
Owner: Nobody in particular
Requestors: PLANETSCP [...] cpan.org
Cc: nancy [...] planetscapeenterprises.com
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.33
Fixed in: (no value)



CC: nancy [...] planetscapeenterprises.com
COALESCE seems not to work with DBD::CSV if the first column is NULL.
Subject: prove_COALESCE.pl
#!/usr/bin/perl -w # prove_COALESCE.pl use strict; use warnings; use DBI; my $dbh_voip_code = DBI->connect( "DBI:CSV:", undef, undef, { f_dir => '.', f_ext => ".csv/r", csv_eol => "\n", csv_sep_char => ',', RaiseError => 1, PrintError => 1, } ) or die "Cannot connect: " . $DBI::errstr; $dbh_voip_code->{csv_tables}->{'newest.csv'} = { file => 'newest.csv', }; my $sth_voip_code = $dbh_voip_code->prepare( qq| CREATE TABLE newest AS SELECT dialplan_canonical_number AS country_code, COALESCE(exchange_mobileoperator, dialplan_canonical_chargeband) AS country, exchange_day AS rate_peak, exchange_evening AS rate_offpeak, NULL AS rate_connfee, exchange_weekend AS rate_weekend FROM newer.csv | ); $sth_voip_code->execute or die "Cannot execute: " . $sth_voip_code->errstr(); DBI->trace(1); $sth_voip_code->finish; $dbh_voip_code->disconnect;
Subject: newer.csv
Download newer.csv
application/force-download 1.9k

Message body not shown because it is not plain text.

MS Windows XP SP3 C:\>uname -a MINGW32_NT-5.1 PLANETSCAPE 1.0.8(0.46/3/2) 2002-12-09 07:58 i686 unknown Strawberry Perl: C:\>perl -V Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Platform: osname=MSWin32, osvers=5.1, archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags =' -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTE XT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX', optimize='-s -O2', cppflags='-DWIN32' ccversion='', gccversion='3.4.5', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='long long', lseek size=8 alignbytes=8, prototype=define Linker and Libraries: ld='g++', ldflags ='-s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\li b"' libpth=C:\strawberry\c\lib libs= -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 perllibs= -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdl g32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lw inmm -lversion -lodbc32 -lodbccp32 libc=-lmsvcrt, so=dll, useshrplib=true, libperl=libperl510.a gnulibc_version='' Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\st rawberry\c\lib"' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS PERL_MALLOC_WRAP PL_OP_SLAB_ALLOC USE_ITHREADS USE_LARGE_FILES USE_PERLIO Built under MSWin32 Compiled at Apr 5 2008 10:33:57 %ENV: PERL5LIB="/lib/perl5/site_perl/5.10" @INC: /lib/perl5/site_perl/5.10 C:/strawberry/perl/lib C:/strawberry/perl/site/lib .
RT-Send-CC: bbyrd [...] cpan.org
Could you recheck with current SVN version? Looks to me that Brendan Byrd fixed that with his patch in RT#72638
No feedback, assumed being resolved.