wow, great, im on the go at the moment but ill have a look at this
today or tomorrow.
On Dec 15, 2005, at 3:23 AM, limodou wrote:
I think I found the answer. Because in pysqlite2, it use unicode
default for everything. So get the column from the system table is
also unicode encoded. But as creating the Column object, it doesn't be
encoded to string. So the name and key are both unicode encoded. I
changed the code in:
class Column(SchemaItem):
"""represents a column in a database table."""
def __init__(self, name, type, *args, **kwargs):
name = str(name)
#-------------------------------------------<add this line
self.name = name
self.type = type
self.args = args
So this change fixes the bug about "TypeError: get_params() keywords
must be strings bug".
Hope this will be helpful.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through
log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD
SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users