Git Product home page Git Product logo

Comments (4)

Tux avatar Tux commented on June 7, 2024 1

I don't think it is.
I fixed the issue for this ticket, but I have to add some tests for it.
If you cannot wait, this is the fix:

diff --git a/lib/DBD/CSV.pm b/lib/DBD/CSV.pm
index 8f46ffd..2a3a1a3 100755
--- a/lib/DBD/CSV.pm
+++ b/lib/DBD/CSV.pm
@@ -15,8 +15,8 @@ require DynaLoader;
 require DBD::File;
 require IO::File;

-our @f_SHORT = qw( file dir dir_search ext lock lockfile schema encoding );
-our @c_SHORT = qw( class eof
+our @f_SHORT = qw( class file dir dir_search ext lock lockfile schema encoding );
+our @c_SHORT = qw( eof
        eol sep_char quote_char escape_char binary decode_utf8 auto_diag
        diag_verbose blank_is_undef empty_is_undef allow_whitespace
        allow_loose_quotes allow_loose_escapes allow_unquoted_escape

from dbd-csv.

ufobat avatar ufobat commented on June 7, 2024

Is this related? https://rt.cpan.org/Public/Bug/Display.html?id=133294

from dbd-csv.

Tux avatar Tux commented on June 7, 2024

Now pushed with test cases.
Note that using a different class (not the case in your example, which pointed to a real bug) requires the invoking script to use/require that class before connecting, so your example for Text::CSV would be

use strict;
use warnings;
use DBI;
use Text::CSV; # <--- this line is required when using another class

my $tbl = shift || "foo";

# See "Creating database handle" below
my $dbh = DBI->connect ("dbi:CSV:", undef, undef, {
    f_ext      => ".csv/r",
    RaiseError => 1,
    PrintError => 1,
    csv_class  => "Text::CSV",
    }) or die "Cannot connect: $DBI::errstr";
$dbh->do ("CREATE TABLE $tbl (id INTEGER, name CHAR (10))");

from dbd-csv.

Tux avatar Tux commented on June 7, 2024

DBD::CSV-0.58 released

from dbd-csv.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.