0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 04:47:18 +08:00

Fixed error in determining can_be_null for joins

This commit is contained in:
rbock 2014-07-28 21:14:20 +02:00
parent 1eaee801ee
commit 159b4c7152
2 changed files with 6 additions and 1 deletions

View File

@ -112,7 +112,7 @@ namespace sqlpp
::sqlpp::detail::make_intersect_set_t< ::sqlpp::detail::make_intersect_set_t<
required_tables_of<_result_type_provider>, required_tables_of<_result_type_provider>,
provided_outer_tables_of<statement_policies_t> provided_outer_tables_of<statement_policies_t>
>::size::value>; >::size::value != 0>;
}; };
}; };
} }

View File

@ -64,6 +64,11 @@ int main()
std::cout << a << ", " << b << ", " << g << std::endl; std::cout << a << ", " << b << ", " << g << std::endl;
} }
for (const auto& row : db(select(all_of(t), all_of(f)).from(t.join(f).on(t.alpha > f.omega)).where(true)))
{
std::cout << row.alpha << std::endl;
}
auto stat = sqlpp::select().columns(all_of(t)).flags(sqlpp::all).from(t).extra_tables(f,t).where(t.alpha > 0).group_by(t.alpha).order_by(t.gamma.asc()).having(t.gamma).limit(7).offset(19); auto stat = sqlpp::select().columns(all_of(t)).flags(sqlpp::all).from(t).extra_tables(f,t).where(t.alpha > 0).group_by(t.alpha).order_by(t.gamma.asc()).having(t.gamma).limit(7).offset(19);
auto s = dynamic_select(db).dynamic_columns(all_of(t)).dynamic_flags().dynamic_from(t).extra_tables(f,t).dynamic_where().dynamic_group_by(t.alpha).dynamic_order_by().dynamic_having(t.gamma).dynamic_limit().dynamic_offset(); auto s = dynamic_select(db).dynamic_columns(all_of(t)).dynamic_flags().dynamic_from(t).extra_tables(f,t).dynamic_where().dynamic_group_by(t.alpha).dynamic_order_by().dynamic_having(t.gamma).dynamic_limit().dynamic_offset();