Skip to content

Commit

Permalink
fixed connection create default values
Browse files Browse the repository at this point in the history
  • Loading branch information
zussel committed Jul 13, 2024
1 parent 1a743d2 commit df8de60
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/sql/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,20 @@ value* create_default_value(data_type type)
return make_value<short>(0);
case data_type::type_int:
return make_value<int>(0);
case data_type::type_long:
return make_value<long>(0);
case data_type::type_long_long:
return make_value<long long>(0);
case data_type::type_unsigned_char:
return make_value((unsigned char)0);
case data_type::type_unsigned_short:
return make_value<unsigned short>(0);
case data_type::type_unsigned_int:
return make_value<unsigned int>(0);
case data_type::type_unsigned_long:
return make_value<unsigned long>(0);
case data_type::type_unsigned_long_long:
return make_value<unsigned long long>(0);
case data_type::type_bool:
return make_value<bool>(false);
case data_type::type_float:
Expand Down

0 comments on commit df8de60

Please sign in to comment.