v1.0.36: чанки 8KB — обход H2 бага

This commit is contained in:
2026-06-18 21:41:29 +04:00
parent b2b148c1b7
commit a23ea0f049
3 changed files with 175 additions and 57 deletions
+16
View File
@@ -85,6 +85,22 @@
<cfset arrayAppend(result.results, "spec_history: OK")>
<cfcatch><cfset arrayAppend(result.results, "spec_history: " & cfcatch.message)></cfcatch>
</cftry>
<cftry>
<cfquery datasource="baza">
CREATE TABLE IF NOT EXISTS upload_chunks (
id SERIAL PRIMARY KEY,
upload_id TEXT NOT NULL,
chunk_index INTEGER NOT NULL,
total_chunks INTEGER DEFAULT 0,
filename TEXT DEFAULT '',
data TEXT NOT NULL,
contract_id TEXT DEFAULT '',
created_at TIMESTAMPTZ DEFAULT now()
)
</cfquery>
<cfset arrayAppend(result.results, "upload_chunks: OK")>
<cfcatch><cfset arrayAppend(result.results, "upload_chunks: " & cfcatch.message)></cfcatch>
</cftry>
<cfelseif url.action EQ "query" AND structKeyExists(url, "sql")>
<cfquery name="q" datasource="baza">#preserveSingleQuotes(url.sql)#</cfquery>