added support for 'in()' statement in 'select'
git-svn-id: svn://ttmath.org/publicrep/morm/trunk@1086 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -102,7 +102,8 @@ void DbExpression::field_before()
|
||||
output_type == MORM_OUTPUT_TYPE_WHERE_GE ||
|
||||
output_type == MORM_OUTPUT_TYPE_WHERE_GT ||
|
||||
output_type == MORM_OUTPUT_TYPE_WHERE_LE ||
|
||||
output_type == MORM_OUTPUT_TYPE_WHERE_LT )
|
||||
output_type == MORM_OUTPUT_TYPE_WHERE_LT ||
|
||||
output_type == MORM_OUTPUT_TYPE_WHERE_IN )
|
||||
{
|
||||
int conjunction = MORM_CONJUNCTION_AND;
|
||||
|
||||
@@ -152,6 +153,11 @@ void DbExpression::put_name_value_separator()
|
||||
{
|
||||
(*out_stream) << " >= ";
|
||||
}
|
||||
else
|
||||
if( output_type == MORM_OUTPUT_TYPE_WHERE_IN )
|
||||
{
|
||||
(*out_stream) << " in ";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user