[Modeling-cvs] ProjectModeling/Modeling/DatabaseAdaptors/PostgresqlAdaptorLayer PostgresqlSQLExpress
Status: Abandoned
Brought to you by:
sbigaret
From: <sbi...@us...> - 2003-08-31 13:58:25
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/DatabaseAdaptors/PostgresqlAdaptorLayer In directory sc8-pr-cvs1:/tmp/cvs-serv14361/DatabaseAdaptors/PostgresqlAdaptorLayer Modified Files: PostgresqlSQLExpression.py Log Message: Fixed: incorrect sqlEscapeChar Index: PostgresqlSQLExpression.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/DatabaseAdaptors/PostgresqlAdaptorLayer/PostgresqlSQLExpression.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** PostgresqlSQLExpression.py 9 Aug 2003 15:10:11 -0000 1.7 --- PostgresqlSQLExpression.py 31 Aug 2003 13:58:22 -0000 1.8 *************** *** 111,114 **** --- 111,121 ---- self._statement=self._statement+' AS DISTINCT_ROWS' + def sqlEscapeChar(self): + """ + Postgresql interprets strings, hence the escape char is a double + backslash + """ + return '\\\\' + def sqlPatternFromShellPatternWithEscapeCharacter(self, pattern, escapeChar): """ |