Skip to content

Commit

Permalink
fix decimal column handling in create table
Browse files Browse the repository at this point in the history
  • Loading branch information
t-horikawa committed Jan 12, 2024
1 parent 5959b9c commit 74058f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bridge/src/worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ ERROR_CODE Worker::do_deploy_table(jogasaki::api::database& db, boost::archive::
}
p = po.value();
if (data_length_vector.size() >= 2) {
auto so = data_length_vector.at(0);
auto so = data_length_vector.at(1);
if (!so) {
s = so.value();
}
Expand Down
2 changes: 1 addition & 1 deletion src/ogawayama/stub/transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class parameter {
}
::jogasaki::proto::sql::request::Parameter operator()(const decimal_type& triple) {
auto* value = &parameter_;
// the following part is the exact copy of https://github.com/project-tsurugi/jogasaki/blob/b5b8a129b622bd4258099b5cf0a829fd4c81d77d/src/jogasaki/api/kvsservice/serializer.cpp#L212C1-L238C2
// the following part is the exact copy of https://github.com/project-tsurugi/jogasaki/blob/206d07d700adc25d19c031bc1df9a08aee16555c/src/jogasaki/api/kvsservice/serializer.cpp#L219-L245
{
const auto lo = triple.coefficient_low();
const auto hi = triple.coefficient_high();
Expand Down

1 comment on commit 74058f7

@t-horikawa
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.