petl-developers / petl

Python Extract Transform and Load Tables of Data
MIT License
1.24k stars 193 forks source link

char0 can repalce in the processing of to_csv? #621

Open wonb168 opened 2 years ago

wonb168 commented 2 years ago

sqlserver column contain char(0), if direct to csv, will contain a special char and can't load into postgres db, and todb is also can't, can replace char(0) in the function fromdb() or in tocsv()? thanks!

juarezr commented 2 years ago

HI @wonb168 ,

The behavior of petl is not handling the data retrieved from the DBApi cursor. It relies on the DBApi driver or the SQLAlchemy to do the job. Also, it doesn't specialize the handling towards any specific driver or database.

Maybe it's possible to investigate if: