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:
2018-04-18 17:52:09 +00:00
parent ffb7ac85a6
commit 476e5de292
8 changed files with 131 additions and 12 deletions

View File

@@ -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 ";
}
}