dolphindb 2.0.1028 → 2.0.1029
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser.js +3 -1
- package/browser.js.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2693,6 +2693,7 @@ export class DDB {
|
|
|
2693
2693
|
segments: [],
|
|
2694
2694
|
};
|
|
2695
2695
|
let schema;
|
|
2696
|
+
let first_message = true;
|
|
2696
2697
|
const { value: colnames } = await this.call('publishTable', [
|
|
2697
2698
|
'localhost',
|
|
2698
2699
|
new DdbInt(0),
|
|
@@ -2710,8 +2711,9 @@ export class DDB {
|
|
|
2710
2711
|
const i_topic_end = buffer.indexOf(0, 17);
|
|
2711
2712
|
// 首个 message 一定是 table schema, 后续消息是 column 片段组成的 any vector
|
|
2712
2713
|
const data = DdbObj.parse(buffer.subarray(i_topic_end + 1), this.le);
|
|
2713
|
-
if (
|
|
2714
|
+
if (first_message) {
|
|
2714
2715
|
schema = data;
|
|
2716
|
+
first_message = false;
|
|
2715
2717
|
return;
|
|
2716
2718
|
}
|
|
2717
2719
|
assert(schema, t('流数据订阅后一定先返回 schema'));
|