Modify

Opened 5 months ago

Last modified 5 months ago

#11708 new defect

[Patch] Unicode field names in SQLTable macro

Reported by: theYT <dev@…> Owned by: rjollos
Priority: normal Component: WikiTableMacro
Severity: normal Keywords: unicode
Cc: Trac Release: 1.0

Description

Error occured when using non-ASCII text as field name (as table header).
Values are ok.

Sample:

SELECT 'test' as '한글'

Patch file attached. (tested with r13683)

Attachments (1)

table.py.patch (515 bytes) - added by theYT <dev@…> 5 months ago.

Download all attachments as: .zip

Change History (3)

Changed 5 months ago by theYT <dev@…>

comment:1 Changed 5 months ago by jun66j5

No. to_unicode() is not needed. We should use get_column_names() instead of cursor.description directly.

comment:2 Changed 5 months ago by rjollos

Thanks for the feedback. I'll apply a patch that uses get_column_names.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.