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/browser.js
CHANGED
|
@@ -2694,6 +2694,7 @@ export class DDB {
|
|
|
2694
2694
|
segments: [],
|
|
2695
2695
|
};
|
|
2696
2696
|
let schema;
|
|
2697
|
+
let first_message = true;
|
|
2697
2698
|
const { value: colnames } = await this.call('publishTable', [
|
|
2698
2699
|
'localhost',
|
|
2699
2700
|
new DdbInt(0),
|
|
@@ -2711,8 +2712,9 @@ export class DDB {
|
|
|
2711
2712
|
const i_topic_end = buffer.indexOf(0, 17);
|
|
2712
2713
|
// 首个 message 一定是 table schema, 后续消息是 column 片段组成的 any vector
|
|
2713
2714
|
const data = DdbObj.parse(buffer.subarray(i_topic_end + 1), this.le);
|
|
2714
|
-
if (
|
|
2715
|
+
if (first_message) {
|
|
2715
2716
|
schema = data;
|
|
2717
|
+
first_message = false;
|
|
2716
2718
|
return;
|
|
2717
2719
|
}
|
|
2718
2720
|
assert(schema, t('流数据订阅后一定先返回 schema'));
|