Quantcast
Channel: MySQL Forums - Connector/Python
Viewing all articles
Browse latest Browse all 384

Prepared Cursors, raw=True? (no replies)

$
0
0
I'm comparing results from two MySQL databases with Python. The first database query is batch, to retrieve all the comparison records from the source, so I didn't prepare it. I'm getting back Unicode strings for the most part, as expected (use_unicode=True).

The target query is run once per record, so I'm using a cursor with prepared=True. The results I'm getting back from this cursor are bytearrays, so they don't match without conversion.

Is it true that prepared cursors in Connector/Python return raw values? Seems to be what I'm seeing. Doesn't change anything if I set raw=False. I can't find anything in the documentation that suggests this is true, but ... seems to be experimentally true.

Viewing all articles
Browse latest Browse all 384

Trending Articles