Hi,
when running the self contained test script below using the SQLite
backend, the output correctly reads
C:\some\path
When using the MySQL backend is reads
C:somepath
Is this a bug? What is the behavior of other backends. Shouldn't
SQLObject escape the backslashes for the MySQL backend?
Kind regards,
Markus
from sqlobject import *
# SQLite works fine
#sqlhub.processConnection = connectionForURI('sqlite:/:memory:')
# MySQL removes backslashes
sqlhub.processConnection = connectionForURI('mysql://[EMAIL PROTECTED]/test')
class Test(SQLObject):
name = StringCol()
Test.dropTable(ifExists = True)
Test.createTable(ifNotExists = True)
Test(name=r'C:\some\path')
print Test.get(1).name # C:somepath when using MySQL
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss