因为close是mysql关键字

2019-11-07 21:33:33,963 DEBUG (BaseJdbcLogger.java:159)- ==>  Preparing: select 'true' as QUERYID, id, posid, userid, account_id, contract, open, close, size, deal_size, limitt, stop, status, ctime, utime, direction, type, stop_mode, trailing_step, price_level, cancel_date, fee_buy, fee_sell, routing_status, settle_asset from exproto_contract_position order by id DESC limit 0, 15 
2019-11-07 21:33:33,968 INFO (XmlBeanDefinitionReader.java:316)- Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]
2019-11-07 21:33:34,002 ERROR (CommonUtils.java:182)- msg:runtimeExceptionHandler: org.springframework.jdbc.UncategorizedSQLException: 
### Error querying database.  Cause: java.sql.SQLException: sql injection violation, syntax error: ERROR. pos 98, line 5, column 52, token CLOSE :
select  
    'true' as QUERYID,
    id, posid, userid, account_id, contract, open, close, size, deal_size, limitt, stop, 
    status, ctime, utime, direction, type, stop_mode, trailing_step, price_level, cancel_date, 
    fee_buy, fee_sell, routing_status, settle_asset
    from exproto_contract_position
    order by id DESC
    limit 0, 15

 

参考:https://blog.csdn.net/duantianya2012/article/details/54571386

相关文章:

  • 2021-07-25
  • 2021-08-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2021-12-02
猜你喜欢
  • 2021-09-16
  • 2022-12-23
  • 2021-05-16
  • 2021-09-30
  • 2022-01-02
  • 2021-10-20
  • 2022-12-23
相关资源
相似解决方案