Skip to content

Commit d2dbb99

Browse files
committed
update
1 parent 824fe20 commit d2dbb99

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -331,10 +331,10 @@ db.createPartitionedTable(t,tbName,'ctimestamp')
331331
DolphinDB provides the loadTable method to load distributed tables and append data via append!. The specific script examples are as follows:
332332

333333
```
334-
public void test_save_table(String dbPath, BasicTable table1)
334+
public void test_save_table(string dbPath, string tableName, BasicTable table1)
335335
{
336-
List<IEntity> args = new List<IEntity>() { table1 };
337-
conn.run(String.Format("append!{loadTable('%s','tb1')}",dbPath), args);
336+
List<IEntity> args = new List<IEntity>() { table1 };
337+
conn.run(String.Format("append!{{loadTable('{0}','{1}')}}", dbPath,tableName), args);
338338
}
339339
```
340340

@@ -364,10 +364,10 @@ db.createPartitionedTable(t,tbName,'ctimestamp')
364364
DolphinDB provides the loadTable method to load local disk tables as well, and function append! to append data.
365365

366366
```
367-
public void test_save_table(String dbPath, BasicTable table1)
367+
public void test_save_table(string dbPath, string tableName, BasicTable table1)
368368
{
369369
List<IEntity> args = new List<IEntity>() { table1 };
370-
conn.run(String.Format("append!{loadTable('%s','tb1')}",dbPath), args);
370+
conn.run(String.Format("append!{{loadTable('{0}','{1}')}}", dbPath,tableName), args);
371371
}
372372
```
373373

README_CN.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,10 @@ db.createPartitionedTable(t,tbName,'ctimestamp')
289289
DolphinDB提供loadTable方法可以加载分布式表,通过append!方式追加数据,具体的脚本示例如下:
290290

291291
```
292-
public void test_save_table(String dbPath, BasicTable table1)
292+
public void test_save_table(string dbPath, string tableName, BasicTable table1)
293293
{
294294
List<IEntity> args = new List<IEntity>() { table1 };
295-
conn.run(String.Format("append!{loadTable('%s','tb1')}",dbPath), args);
295+
conn.run(String.Format("append!{{loadTable('{0}','{1}')}}", dbPath,tableName), args);
296296
}
297297
```
298298

@@ -318,10 +318,10 @@ db.createPartitionedTable(t,tbName,'ctimestamp')
318318
```
319319
DolphinDB提供loadTable方法同样可以加载本地磁盘表,通过append!追加数据。
320320
```
321-
public void test_save_table(String dbPath, BasicTable table1)
321+
public void test_save_table(string dbPath, string tableName, BasicTable table1)
322322
{
323323
List<IEntity> args = new List<IEntity>() { table1 };
324-
conn.run(String.Format("append!{loadTable('%s','tb1')}",dbPath), args);
324+
conn.run(String.Format("append!{{loadTable('{0}','{1}')}}", dbPath,tableName), args);
325325
}
326326
```
327327
### 10. 循环遍历BasicTable

dolphindb_csharpapi/data/BasicNanoTimeVector.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public override void add(object value)
106106
if (value is TimeSpan)
107107
{
108108
base.add(Utils.countNanoseconds((TimeSpan)value));
109+
return;
109110
}
110111
base.add(value);
111112
}

dolphindb_csharpapi/data/BasicSecondVector.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public override void add(object value)
9898
if (value is TimeSpan)
9999
{
100100
base.add(Utils.countSeconds((TimeSpan)value));
101+
return;
101102
}
102103
base.add(value);
103104
}

0 commit comments

Comments
 (0)