changed: esc() function for bool uses now 'true' and 'false' strings
added: esc() for PT::Date git-svn-id: svn://ttmath.org/publicrep/morm/trunk@1078 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -231,7 +231,10 @@ void BaseExpression::esc(const char * val, PT::TextStream & stream)
|
||||
|
||||
void BaseExpression::esc(bool val, PT::TextStream & stream)
|
||||
{
|
||||
stream << val;
|
||||
if( val )
|
||||
stream << "true";
|
||||
else
|
||||
stream << "false";
|
||||
}
|
||||
|
||||
|
||||
@@ -308,6 +311,11 @@ void BaseExpression::esc(void* val, PT::TextStream & stream)
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::esc(const PT::Date & date, PT::TextStream & stream)
|
||||
{
|
||||
stream << "'" << date << "'";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user