The hospital was preparing for a health authority assessment of its information systems. My part concerned data consistency and timeliness. Alongside the metrics, auditors needed to review the SQL that produced them. For a ratio in a spreadsheet, for example, the numerator and denominator each had a query. Reviewers needed to trace the number back to those two statements and see which records each counted.
The query document I had was several years old. I had to run the statements one by one against the current database, fix errors, and check the numbers. Several metrics reused the same SQL. I wanted to preserve what already worked: next time someone supplied a spreadsheet, identical queries should run just once, and every relevant formula should be able to use the result. The colleague who needed this workflow was on the hospital network at an old computer still running Windows 7.
Could colleagues just open a browser and use it?
I originally chose JavaScript to try a frontend-only implementation. Even on an old system, surely I could install a relatively recent Chrome. Reading Excel, extracting statements, and deduplicating SQL all suited a browser. In April I had also seen examples of running SQLite in a web page with sql.js: it could open a local database file and execute SQL directly on the page.1
But the operational data for the assessment lived on the internal network. Some metrics covered several vendors’ systems. The hospital had previously commissioned a third party to synchronize their scattered records to a single TiDB cluster precisely so one SQL statement could query across systems. A web page could manage the query list, but computing numerators and denominators still required an executor connected to that cluster.
In late May I wrote a small script to find SQL by section in a document, execute it one statement at a time, and write names, results, or errors to CSV. Later I added a connection pool and saved intermediate results. A batch could take a long time. Recalculating a ratio from existing values was easier than querying the database again after every formula change. By June I wanted colleagues to use this workflow too.
Go produced an EXE. Why did I still get stuck on Win7?
I tried writing the query executor in Go. It read queries and variables from Markdown and connected to TiDB with a MySQL driver.2 On the evening of June 16, I ran the 64-bit executable on 64-bit Win7 and saw 0xc0000005, a Windows memory access violation. Windows can raise it when a program tries to read, write, or execute at an address that forbids the operation. The exception code alone doesn’t identify the offending line.3
On another attempt from PowerShell, the console showed no logs. That evening I read a Go issue from someone whose Hello World built with Go 1.21.5 raised the same exception on Win7. A maintainer explained that a change in 1.21.5 used a system API absent from Win7. I pasted that reply into Cursor and asked how to use an older Go version.45
One distinction was easy to miss. A Makefile line specifically for Win7 used GOOS=windows, GOARCH=amd64, and CGO_ENABLED=0. The first two select OS and architecture. The third disables interoperability with C. The Windows generations the program can run on also depend on its compiled-in Go runtime. The project states the boundary clearly: “Go 1.20 is the last release that will run on any release of Windows 7, 8, Server 2008 and Server 2012.”6
Two versions can coexist on the development machine. The Go download page still lists 1.20.14. With a regular Go installation and Git available, and the directory used to install Go command-line programs on PATH, these three lines install the older version alongside the current one. Continue using go build normally, and use go1.20.14 build for an old-toolchain build.7
go install golang.org/dl/go1.20.14@latest
go1.20.14 download
go1.20.14 version
My history shows several go1.20.14 build attempts targeting 64-bit Windows, followed by a return to go build. Of the two saved 64-bit EXEs, one has windows7 in the name and the other just windows. go version -m says both were built with Go 1.24.4, and even their file hashes match. I remember that I never delivered the Go version to my colleague. I can no longer recall whether I tried a binary built with 1.20.14 on Win7 at the time.5
Later I rebuilt the June 17 code with Go 1.20.14. It first stopped at go.mod: the old toolchain reported an invalid version format on go 1.24.4. In a copy, I changed that line to go 1.20 and kept the original dependency versions. The compiler then reached the MySQL driver and reported undefined: min. The project used go-sql-driver/mysql v1.9.3, which requires Go 1.21 and calls min, a builtin introduced in 1.21. This time the build failed on my development machine before it could produce an EXE to test on Win7.85
I also investigated other languages that might run on the old machine. On June 16, half a minute after reading about building Go programs for Win7, I searched for scala support for win 7. The next day I looked into Scala’s Java 8 support. The Go discussion I read · Scala JDK compatibility table
What compatibility constraints did the web page and local Node service face?
On June 22 I split the original script’s calculation logic into a Node service. The page parsed Excel and grouped duplicate SQL by statement digest. The backend ran queries through a connection pool and streamed progress and results back to the page. Colleagues could see which statements were still running and match errors to their metrics. The browser and Node now owned different stages, each with its own compatibility requirements.9
| Where it ran | Problem I encountered | Change I actually made |
|---|---|---|
| My colleague’s Chrome | I asked for Chrome 70 compatibility, then checked whether Tailwind could run on it. | Set Vite’s JavaScript output target to ES2015. The project used Tailwind CSS 4.1.10, whose CSS features had their own browser version requirements.1011 |
| Local Node.js | The old machine needed Node 13 support. I specifically asked which Express version could run with 13.6.0. | Changed Express from ^5.1.0 to ^4.17.1 and bundled the service with ncc, reducing its deployment entry point to one index.js.12 |
This set a ceiling on my initial idea to install a newer Chrome. The last Google-supported version on Win7 was Chrome 109, while Tailwind v4 officially targets Chrome 111 onward. Changing only the JavaScript compiler target can’t close a CSS gap. I don’t remember whether IndexedDB or sql.js also contributed to my leaving the pure frontend approach. Chrome 58 supported IndexedDB 2.0. The issues I remember best and can trace to concrete versions are the styling library and Node dependencies.1314
Why try Python when there was already a Node service?
Another time-consuming task was converting existing Oracle queries to MySQL syntax. For these statements, Python’s SQLGlot was the most mature and convenient option I found. I used a Python script committed on June 25 to convert the batch and wrote the outputs to translations.json. Conversion could happen ahead of time. Node executed the queries in the deployment instructions. I can’t recall which machine did the conversion or whether SQLGlot itself could run on the hospital Win7 computer. I describe date-format conversions and the need for extra rules in another article on SQL translation.
I also wondered whether FastAPI might perform better than continuing with Express. On June 26 I read FastAPI’s concurrency tutorial and database query benchmarks as well as discussions of free-threaded Python. Two costs were involved: an asynchronous server can handle other requests while waiting for the database, whereas several threads executing Python on CPUs at once raises the interpreter’s global lock (GIL). Python 3.13 introduced an optional build without the GIL. My development service used 3.12.3, and the code actually implemented async endpoints and database sessions. Node 13.6 also had workers for parallel JavaScript and could share buffers with SharedArrayBuffer. Performance motivated the FastAPI experiment. I have no comparison of both versions running the same batch on the hospital machine.1516
If sending data costs more than computing on it, could multiple threads use the same data directly? That later became a small experiment on passing arguments to a process pool.
In early July I made a FastAPI web application for managing queries and formulas and tested it with SQLite on my development machine. It stored each data query and the indicator formulas using it.17 I also investigated packaging a single Windows executable. At the time the project required Python 3.9 or above, while Python’s official Win7 version was 3.8.18 My plan was to finish testing, then deploy to a server running a newer Linux. As I recall, it only ran on my development machine and never entered production on the hospital network.
What steps did I ultimately leave my colleague?
I remember the program eventually running after compatibility changes. What I can reconstruct most clearly is the instruction sheet packaged with the JavaScript version in late June: configure the database connection, run node index.js in dist, then open localhost:3000 in a browser. The remaining work happened on one page.19

Screenshot saved for the deployment package, cropped from an original whose filename gives June 25, 2025. It shows the test workbook and both action buttons. The machine’s operating system cannot be identified from it.19
My colleague uploaded a workbook, clicked the left button to execute SQL, waited for the query values, then clicked the right button to calculate. When reviewing a ratio, the variables in its formula led back to the corresponding queries. Changing only the formula let them reuse the results already fetched. The effort spent getting each statement in the old document working would carry forward to the next assessment. After clicking Calculate, how does Node.js substitute query values into the spreadsheet formula?
Footnotes
-
osc_cead6252. (2024, December 26). JavaScript中的SQLite应用 打造轻量级本地数据库解决方案(§4.2、§5.2). 开源中国. 教程原文。sql.js contributors. (n.d.). sql.js(Inside the browser). 项目文档。 ↩
-
CaiBorui [S2thend]. (2025, June 17). Add SQL query execute using MySQL connector feature [本地 Git 提交
6e48d58]. SqlQueryManagement,server/Makefile、server/internal/executor/executor.go。 ↩ -
Microsoft. (n.d.). Access Violation C0000005 [Inside Show]. Microsoft Learn. 异常码与异常参数。 ↩
-
mmixon808. (2023, December 8). runtime: Applications will not launch in Windows 7 [Issue #64622]. GitHub. 问题报告及维护者 dmitshur 的回复。 ↩
-
CaiBorui. (2025, June 16–17). Windows 7 运行记录与 Go 构建产物 [私人开发记录]. Cursor、终端历史与本地项目
server/bin。6 月 16 日的对话记录了异常和询问旧版 Go 的经过。终端历史保留了命令,没有输出。两份 EXE 的版本及 SHA-256 已核对。两次交叉编译复验均于 2026-11-26 在提交6e48d58的临时副本中进行,目标为windows/amd64。 ↩ ↩2 ↩3 -
The Go Authors. (2023, February 1). Go 1.20 release notes(Ports → Windows, para. 1). The Go Project. Windows 支持范围。 ↩
-
The Go Authors. (n.d.). All releases(go1.20.14). The Go Project. 各版本下载页。The Go Authors. (n.d.). Managing Go installations. The Go Project. 多版本安装步骤。 ↩
-
Go-MySQL-Driver contributors. (n.d.). Go MySQL Driver (v1.9.3). GitHub. 最低 Go 版本、compress.go 第 158 行、packets.go 第 138 行。The Go Authors. (2023). Go 1.21 release notes. The Go Project. 内置函数的变化。 ↩
-
CaiBorui [S2thend]. (2025, June 22). Add API execute SQL and get saved results, and corresponding UI [本地 Git 提交
8c0af5b]. SqlQueryManagement,server-js/main.js、webui/src/App.jsx。 ↩ -
CaiBorui [S2thend]. (2025, June 22). Add support for compatibility with Chrome 80 [本地 Git 提交
98a5183]. SqlQueryManagement,webui/vite.config.js。 ↩ -
Tailwind Labs. (n.d.). Compatibility(Browser support). Tailwind CSS. v4 浏览器要求。 ↩
-
CaiBorui [S2thend]. (2025, June 22). Downgrade ExpressJS to be compatible with Node.js 13 for Win7 [本地 Git 提交
7099426]. SqlQueryManagement,server-js/package.json。 ↩ -
Google. (n.d.). Chrome browser system requirements(Windows support timelines). Chrome Enterprise Help. Windows 版本表。 ↩
-
LePage, P. (2017, April 19). New in Chrome 58(IndexedDB 2.0). Chrome for Developers. IndexedDB 说明。 ↩
-
FastAPI. (n.d.). Concurrency and async / await(Burger conclusion). 并发与等待。TechEmpower. (n.d.). Framework benchmarks, round 17(Single query). 当时查看的测试。 ↩
-
Python Software Foundation. (2024). What’s new in Python 3.13(Free-threaded CPython). 3.13 发布说明。Node.js contributors. (2020). Worker threads(Node.js v13.6.0). 线程及共享内存。 ↩
-
CaiBorui [S2thend]. (2025, July 2). Add Python backend service [本地 Git 提交
b088abf]. SqlQueryManagement,server-py/src/sqlman/api/endpoints.py。 ↩ -
Python Software Foundation. (n.d.). Using Python on Windows(Supported Windows versions). Python 3.12 Documentation. Windows 版本要求。项目运行时要求见本地提交
b088abf的server-py/pyproject.toml。 ↩ -
CaiBorui. (2025, June). SQL 查询工具部署说明与测试界面 [本地部署包].
sql1.zip中的packaged/readme.md和Screenshot from 2025-06-25 18-19-42.png。原图保存在项目目录,文中仅裁出上传和操作区域。 ↩ ↩2