Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^5: Can't connect to data source 'DBI:SQLite:\C:\Users\DON\Desktop\data.db

by huck (Prior)
on Apr 21, 2018 at 08:28 UTC ( [id://1213313]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Can't connect to data source 'DBI:SQLite:\C:\Users\DON\Desktop\data.db
in thread pp concatenate path

I suspect it means that DBI has problems dealing with connect strings marked as UTF

  • Comment on Re^5: Can't connect to data source 'DBI:SQLite:\C:\Users\DON\Desktop\data.db

Replies are listed 'Best First'.
Re^6: Can't connect to data source 'DBI:SQLite:\C:\Users\DON\Desktop\data.db
by Anonymous Monk on Apr 21, 2018 at 23:23 UTC

    if you suspect then you don't know

    It is silly to suspect DBI has a problem with unicode, if DBI did, it would manifest for OP without PAR

    DBI does not have a problem with unicode in a dsn, it simply doesn't care,

    As previously stated, the problem as reported by OP is unreproducible

    This is where the error comes from

    # extract dbi:driver prefix from $dsn into $1 $dsn =~ s/^dbi:(\w*?)(?:\((.*?)\))?://i or '' =~ /()/; # ensure $1 etc are empty if match fails my $driver_attrib_spec = $2 || ''; # Set $driver. Old style driver, if specified, overrides new dsn s +tyle. $driver = $old_driver || $1 || $ENV{DBI_DRIVER} or Carp::croak("Can't connect to data source '$dsn' " ."because I can't work out what driver to use " ."(it doesn't seem to contain a 'dbi:driver:' prefix " ."and the DBI_DRIVER env var is not set)");

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1213313]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-19 22:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found