Skip to content

Commit

Permalink
Merge pull request #98 from taosdata/test/xftan/chineseinsql
Browse files Browse the repository at this point in the history
test: chinese in sql
  • Loading branch information
huskar-t authored Jan 7, 2025
2 parents be3b15e + da971c7 commit 6122829
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
15 changes: 8 additions & 7 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@

## 版本支持

| **Connector 版本** | **TDengine 版本** | **主要功能** |
|------------------|------------------|----------------------------|
| 3.1.4 | 3.3.2.0/3.1.2.0 | 提升 websocket 查询和写入性能 |
| 3.1.3 | 3.2.1.0/3.1.1.18 | 支持 WebSocket 自动重连 |
| 3.1.2 | 3.2.1.0/3.1.1.18 | 修复 schemaless 资源释放 |
| 3.1.1 | 3.2.1.0/3.1.1.18 | 支持 varbinary 和 geometry 类型 |
| 3.1.0 | 3.2.1.0/3.1.1.18 | WebSocket 使用原生实现 |
| **Connector 版本** | **TDengine 版本** | **主要功能** |
|------------------|--------------------------|-----------------------------|
| 3.1.5 | 3.3.2.0 及以上/3.1.2.0 及以上 | 修复 websocket sql 包含中文长度计算错误 |
| 3.1.4 | 3.3.2.0 及以上/3.1.2.0 及以上 | 提升 websocket 查询和写入性能 |
| 3.1.3 | 3.2.1.0 及以上/3.1.1.18 及以上 | 支持 WebSocket 自动重连 |
| 3.1.2 | 3.2.1.0 及以上/3.1.1.18 及以上 | 修复 schemaless 资源释放 |
| 3.1.1 | 3.2.1.0 及以上/3.1.1.18 及以上 | 支持 varbinary 和 geometry 类型 |
| 3.1.0 | 3.2.1.0 及以上/3.1.1.18 及以上 | WebSocket 使用原生实现 |

## 处理异常

Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ Note TDengine no longer supports 32-bit Windows platforms.

## Version support

| **Connector version** | **TDengine version** | **major features** |
|-----------------------|----------------------|--------------------------------------|
| 3.1.4 | 3.3.2.0/3.1.2.0 | WebSocket performance improvements |
| 3.1.3 | 3.2.1.0/3.1.1.18 | support Websocket reconnect |
| 3.1.2 | 3.2.1.0/3.1.1.18 | fix schemaless result release |
| 3.1.1 | 3.2.1.0/3.1.1.18 | support varbinary and geometry |
| 3.1.0 | 3.2.1.0/3.1.1.18 | WebSocket uses native implementation |
| **Connector version** | **TDengine version** | **major features** |
|-----------------------|--------------------------------------|--------------------------------------|
| 3.1.4 | 3.3.2.0 and above/3.1.2.0 and above | WebSocket performance improvements |
| 3.1.3 | 3.2.1.0 and above/3.1.1.18 and above | support Websocket reconnect |
| 3.1.2 | 3.2.1.0 and above/3.1.1.18 and above | fix schemaless result release |
| 3.1.1 | 3.2.1.0 and above/3.1.1.18 and above | support varbinary and geometry |
| 3.1.0 | 3.2.1.0 and above/3.1.1.18 and above | WebSocket uses native implementation |

## Handling exceptions

Expand Down
4 changes: 2 additions & 2 deletions test/Driver.Test/Client/Query/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public Client(ITestOutputHelper output)
}

sql = string.Format(
"values({0},{1},{2},{3},{4},{5},{6},{7},{8},{9},{10},{11},'test_binary','test_nchar','test_varbinary','POINT(100 100)')({12},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null)",
"values({0},{1},{2},{3},{4},{5},{6},{7},{8},{9},{10},{11},'test_binary','test_nchar','中文','POINT(100 100)')({12},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null)",
ts,
v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11,
nextSecond);
Expand All @@ -87,7 +87,7 @@ public Client(ITestOutputHelper output)
{
TDengineConstant.ConvertTimeToDatetime(ts, precision), v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11,
Encoding.UTF8.GetBytes("test_binary"),
"test_nchar", Encoding.UTF8.GetBytes("test_varbinary"),
"test_nchar", Encoding.UTF8.GetBytes("中文"),
new byte[]
{
0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x59, 0x40, 0x00, 0x00,
Expand Down

0 comments on commit 6122829

Please sign in to comment.