Release file sql-wasm.js doesn't support JSON1 after rebuilding, but debug one does.

Đang mở
#442 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, sqlite, wasm
Lĩnh vực
build-system, databases

Hướng nghiên cứu

Start with the Makefile CFLAGS and the npm run rebuild entry point, then compare how sql-wasm.js and sql-wasm-debug.js are produced in dist. Reproduce the JSON1 test against both outputs and trace the release build configuration; done means the rebuilt release file supports JSON1 as the debug file does.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hi,
I clone the project and did the modification in makefile to support JSON1.

CFLAGS = \
	-O2 \
	-DSQLITE_OMIT_LOAD_EXTENSION \
	-DSQLITE_DISABLE_LFS \
	-DSQLITE_ENABLE_FTS3 \
	-DSQLITE_ENABLE_FTS3_PARENTHESIS \
	-DSQLITE_ENABLE_FTS5 \
    	-DSQLITE_ENABLE_JSON1 \
	-DSQLITE_THREADSAFE=0 \
	-DSQLITE_ENABLE_NORMALIZE

Then rebuild

npm run rebuild

The output files in dist folder, I found that only debug one (sql-wasm-debug.js) supports JSON1 by running some test code. But the release file sql-wasm.js doesn't support JSON1.

Is there any idea how to resolve this issue? Thank you

Ngôn ngữ chính
JavaScript
Star
13.7k
Fork
1.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của sql-js/sql.js

Tất cả issue của sql-js/sql.js

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.