[Python] psycopg2, utf8, sqlalchemy, etc.
Marco Mariani
marco.mariani a prometeia.it
Dom 24 Gen 2010 14:06:58 CET
On 01/24/2010 02:00 PM, Lawrence Oluyede wrote:
> Sicuro? se io uso il tipo Unicode nella table la conversione avviene.
>
Beh, io uso l'autoload... quindi e' PGString. IMHO il tipo dovrebbe
essere di default Unicode quando convert_unicode=True... e invece
In [3]: metadata.tables['contratti'].c.oggetto
Out[3]: Column(u'oggetto', PGString(length=250, convert_unicode=False,
assert_unicode=None), table=<contratti>, nullable=False)
--
This e-mail (and any attachment(s)) is strictly confidential and for use only by intended recipient(s). Any use, distribution, reproduction or disclosure by any other person is strictly prohibited. The content of this e-mail does not constitute a commitment by the Company except where provided for in a written agreement between this e-mail addressee and the Company. If you are not an intended recipient(s), please notify the sender promptly and destroy this message and its attachments without reading or saving it in any manner. Any non authorized use of the content of this message constitutes a violation of the obligation to abstain from learning of the correspondence among other subjects, except for more serious offence, and exposes the person responsible to the relevant consequences.
Maggiori informazioni sulla lista
Python