Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 4343

Weird Problem While fetching varchar data from my python code on Linux

$
0
0

Hi,

 

I am successfully able to create connection and fetching the data from windows system. The data is correctly fetching out.

 

I have linux machine on which i have installed pyodbc, mysql, unixodbc and unixodbc-devl and also configure change in odbcinst.ini.

 

if i am creating odbc connection with my python code to mysql, its correctly fetching out data on Opensuse Linux machine. i am also successfully able to  create connection with python code to hana db on linux machine. Also, its fetching out the data from hana db, but If the datatype of the table is 'varchar' then it replace the first four character of that field value with '\x00' and if it is nvarchar datatype, then it replace the first two character with '\x00'.

 

 

We don't know exactly where is the problem. Is it related to wrong creation of table(means like), or with hana client or with pyodbc. But as per my understanding, it seems with hana-client on linux because my odbc connection with python code is working perfectly with mysql on linux, also odbc connection with python code both for windows and linux is working perfectly.

 

Please help me out, how could i resolve this problem.

 

 

Regards,

Naveen Goyal


Viewing all articles
Browse latest Browse all 4343

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>