Skip to content

Commit

Permalink
fixed get_trans_list 数据错误
Browse files Browse the repository at this point in the history
  • Loading branch information
fasiondog committed Mar 14, 2024
1 parent ba2849f commit 33c252c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ TransList MySQLKDataDriver::_getTransListByDate(const string& market, const stri
SQLStatementPtr st = m_connect->getStatement(
fmt::format("select `date`, `price`, `vol`, `buyorsell` from {} where date >= {} and "
"date < {} order by date",
table, query.startDatetime().number(), query.endDatetime().number()));
table, query.startDatetime().ymdhms(), query.endDatetime().ymdhms()));

m_connect->transaction();
st->exec();
Expand Down

0 comments on commit 33c252c

Please sign in to comment.