Merge remote-tracking branch 'origin/develop' into feature/os
This commit is contained in:
commit
c2cf92c3b5
|
@ -338,16 +338,11 @@ TDengine 目前支持时间戳、数字、字符、布尔类型,与 Java 对
|
||||||
maven 项目中使用如下 pom.xml 配置即可:
|
maven 项目中使用如下 pom.xml 配置即可:
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.taosdata.jdbc</groupId>
|
<groupId>com.taosdata.jdbc</groupId>
|
||||||
<artifactId>taos-jdbcdriver</artifactId>
|
<artifactId>taos-jdbcdriver</artifactId>
|
||||||
<version>2.0.0</version>
|
<version>2.0.1</version>
|
||||||
<type>jar</type>
|
|
||||||
<scope>system</scope>
|
|
||||||
<systemPath>{localdir}/connector/taos-jdbcdriver-2.0.0-dist.jar</systemPath>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### 源码编译打包
|
### 源码编译打包
|
||||||
|
@ -1099,3 +1094,18 @@ promise2.then(function(result) {
|
||||||
[这里](https://github.com/taosdata/TDengine/tree/master/tests/examples/nodejs/node-example-raw.js)同样是一个使用NodeJS 连接器建表,插入天气数据并查询插入的数据的代码示例,但和上面不同的是,该示例只使用`cursor`.
|
[这里](https://github.com/taosdata/TDengine/tree/master/tests/examples/nodejs/node-example-raw.js)同样是一个使用NodeJS 连接器建表,插入天气数据并查询插入的数据的代码示例,但和上面不同的是,该示例只使用`cursor`.
|
||||||
|
|
||||||
|
|
||||||
|
[1]: https://search.maven.org/artifact/com.taosdata.jdbc/taos-jdbcdriver
|
||||||
|
[2]: https://mvnrepository.com/artifact/com.taosdata.jdbc/taos-jdbcdriver
|
||||||
|
[3]: https://github.com/taosdata/TDengine
|
||||||
|
[4]: https://www.taosdata.com/blog/2019/12/03/jdbcdriver%e6%89%be%e4%b8%8d%e5%88%b0%e5%8a%a8%e6%80%81%e9%93%be%e6%8e%a5%e5%ba%93/
|
||||||
|
[5]: https://github.com/brettwooldridge/HikariCP
|
||||||
|
[6]: https://github.com/alibaba/druid
|
||||||
|
[7]: https://github.com/taosdata/TDengine/issues
|
||||||
|
[8]: https://search.maven.org/artifact/com.taosdata.jdbc/taos-jdbcdriver
|
||||||
|
[9]: https://mvnrepository.com/artifact/com.taosdata.jdbc/taos-jdbcdriver
|
||||||
|
[10]: https://maven.aliyun.com/mvn/search
|
||||||
|
[11]: https://github.com/taosdata/TDengine/tree/develop/tests/examples/JDBC/SpringJdbcTemplate
|
||||||
|
[12]: https://github.com/taosdata/TDengine/tree/develop/tests/examples/JDBC/springbootdemo
|
||||||
|
[13]: https://www.taosdata.com/cn/documentation20/administrator/#%E5%AE%A2%E6%88%B7%E7%AB%AF%E9%85%8D%E7%BD%AE
|
||||||
|
[14]: https://www.taosdata.com/cn/documentation20/connector/#Windows
|
||||||
|
[15]: https://www.taosdata.com/cn/getting-started/#%E5%BF%AB%E9%80%9F%E4%B8%8A%E6%89%8B
|
|
@ -157,7 +157,7 @@ typedef struct SParamInfo {
|
||||||
int32_t idx;
|
int32_t idx;
|
||||||
char type;
|
char type;
|
||||||
uint8_t timePrec;
|
uint8_t timePrec;
|
||||||
short bytes;
|
int16_t bytes;
|
||||||
uint32_t offset;
|
uint32_t offset;
|
||||||
} SParamInfo;
|
} SParamInfo;
|
||||||
|
|
||||||
|
|
|
@ -298,7 +298,7 @@ static int doBindParam(char* data, SParamInfo* param, TAOS_BIND* bind) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TSDB_DATA_TYPE_BINARY:
|
case TSDB_DATA_TYPE_BINARY:
|
||||||
if ((*bind->length) > param->bytes) {
|
if ((*bind->length) > (uintptr_t)param->bytes) {
|
||||||
return TSDB_CODE_TSC_INVALID_VALUE;
|
return TSDB_CODE_TSC_INVALID_VALUE;
|
||||||
}
|
}
|
||||||
size = (short)*bind->length;
|
size = (short)*bind->length;
|
||||||
|
|
|
@ -72,8 +72,8 @@ DLL_EXPORT void taos_close(TAOS *taos);
|
||||||
typedef struct TAOS_BIND {
|
typedef struct TAOS_BIND {
|
||||||
int buffer_type;
|
int buffer_type;
|
||||||
void * buffer;
|
void * buffer;
|
||||||
unsigned long buffer_length; // unused
|
uintptr_t buffer_length; // unused
|
||||||
unsigned long *length;
|
uintptr_t *length;
|
||||||
int * is_null;
|
int * is_null;
|
||||||
int is_unsigned; // unused
|
int is_unsigned; // unused
|
||||||
int * error; // unused
|
int * error; // unused
|
||||||
|
|
Loading…
Reference in New Issue