Skip to content

Commit b6a57a3

Browse files
committed
little bugfixes...
1 parent c0dd8d7 commit b6a57a3

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/client/communication/CacheManager.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ export class CacheManager {
1717
if(!this.cacheAvailable()) return;
1818
let that = this;
1919
this.getCache((cache) => {
20-
cache.put(that.databaseIdToCacheIdentifier(databaseId), new Response(templateDump));
20+
cache.put(that.databaseIdToCacheIdentifier(databaseId), new Response(templateDump)).catch((reason: any) => {
21+
console.warn("Konnte Template nicht im Cache speichern, Grund: " + reason);
22+
});
2123
})
2224
}
2325

src/client/compiler/parser/SymbolResolver.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ export class SymbolResolver {
641641
for (let i = 0; i < method.parameters.length; i++) {
642642
let methodParameter = method.parameters[i];
643643
let operand = node.operands[i];
644+
if(operand == null) continue
644645
if (!operand.sqlType.canCastTo(methodParameter.type)) {
645646
found = false;
646647
break;

src/client/tools/TemplateUploader.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { UploadTemplateResponse } from "../communication/Data.js";
33
import { Main } from "../main/Main.js";
44
import pako from 'pako';
55

6+
import jQuery from "jquery";
7+
68
export class TemplateUploader {
79

810
uploadCurrentDatabase(workspace_id: number, main: Main, dump: Uint8Array | null,
@@ -33,7 +35,7 @@ export class TemplateUploader {
3335
let headers: {[key: string]: string;} = { 'x-workspaceid': "" + workspace_id, "x-reason": reason };
3436
if(csrfToken != null) headers["x-token-pm"] = csrfToken;
3537

36-
$.ajax({
38+
jQuery.ajax({
3739
type: 'POST',
3840
async: true,
3941
contentType: 'application/octet-stream',

0 commit comments

Comments
 (0)