good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: dbi:ODBC change Portby Corion (Patriarch) |
on Nov 10, 2022 at 12:50 UTC ( [id://11148098]=note: print w/replies, xml ) | Need Help?? |
This does not do what you think:
The second argument to ->connect must be undef or the database user, and the third argument must be the password. The fourth argument can optionally be the connection options, given as a hash. Your code "works" because you specify user and password in the DSN and that seems to override the arguments given to ->connect. I would recommend you change your code to the four-argument version.</>
In Section
Seekers of Perl Wisdom
|
|