Open MetricMike opened 6 years ago
Howdy @MetricMike - I like your solution a lot more than what I was doing. I only did this as a proof on concept for another user, and relied on having an .odbcinst.ini
in the Lambda's home directory. I was going to come up with a better solution, but the person asking for this proof on concept stopped responding, so I stopped working on it! As for odbc.ini
, IIRC, I only used FQDN's to connect, not DSNs. I hope this helps!
the
libodbc.so.2
from #73 appears to be using unixODBC's defaults which meansodbcinst -j
producesbut since
/etc/
isn't modifiable in Lambda, we're stuck with the default MySQL and PostgreSQL drivers. If I wanted to add another driver, I'm out of luck.After recompiling unixODBC with
./configure --prefix=/var/task/unixODBC
, I was able to:and everything seems to be in order.
I'm a little confused how this package ever worked though, given that with the default configuration:
none of these files exist in Lambda and neither
/usr/lib/
/usr/lib64/
are writable.@FlipperPA, can you provide any insight here? I'd like to pinpoint what's going on before I submit a PR addressing the issue.