You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2020/08/10 16:02:45 UTC

[GitHub] [incubator-iotdb] jixuan1989 commented on issue #1565: 可否通过配置,在获取boolean类型数据时,返回0/1 而不是 true/false

jixuan1989 commented on issue #1565:
URL: https://github.com/apache/incubator-iotdb/issues/1565#issuecomment-671443229


   在增加这个功能之前,可以通过以下两种方式来达到你想要的输出:
   1.使用jdbc的话,resultset的getBoolean方法返回的就是布尔型,自己定义输出就行;
   2.使用session api的话,使用sessionDataSet的getObjectValue()方法而不是getStringValue()方法,就可以得到布尔型,再自行输出。
   
   before we add this feature, if you want to return 0/1 rather than true/false, try:
   1. when  you use JDBC, call `resultset.getBoolean()` method
   2. when you use session API, call `sessionDataSet.getObjectValue() rather than getStringValue()`


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org