mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 11:03:57 +00:00
default parameter encoding for execute scripts
This commit is contained in:
@@ -173,17 +173,19 @@ registerCommand({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
registerCommand({
|
if (isProApp()) {
|
||||||
id: 'new.queryDesign',
|
registerCommand({
|
||||||
category: 'New',
|
id: 'new.queryDesign',
|
||||||
icon: 'img query-design',
|
category: 'New',
|
||||||
name: 'Query design',
|
icon: 'img query-design',
|
||||||
menuName: 'New query design',
|
name: 'Query design',
|
||||||
onClick: () => newQueryDesign(),
|
menuName: 'New query design',
|
||||||
testEnabled: () =>
|
onClick: () => newQueryDesign(),
|
||||||
getCurrentDatabase() &&
|
testEnabled: () =>
|
||||||
findEngineDriver(getCurrentDatabase()?.connection, getExtensions())?.databaseEngineTypes?.includes('sql'),
|
getCurrentDatabase() &&
|
||||||
});
|
findEngineDriver(getCurrentDatabase()?.connection, getExtensions())?.databaseEngineTypes?.includes('sql'),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (isProApp()) {
|
if (isProApp()) {
|
||||||
registerCommand({
|
registerCommand({
|
||||||
@@ -229,14 +231,16 @@ if (isProApp()) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
registerCommand({
|
if (isProApp()) {
|
||||||
id: 'new.perspective',
|
registerCommand({
|
||||||
category: 'New',
|
id: 'new.perspective',
|
||||||
icon: 'img perspective',
|
category: 'New',
|
||||||
name: 'Perspective',
|
icon: 'img perspective',
|
||||||
menuName: 'New perspective',
|
name: 'Perspective',
|
||||||
onClick: () => newPerspective(),
|
menuName: 'New perspective',
|
||||||
});
|
onClick: () => newPerspective(),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
registerCommand({
|
registerCommand({
|
||||||
id: 'new.diagram',
|
id: 'new.diagram',
|
||||||
|
|||||||
@@ -416,7 +416,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
let isInitialized = false;
|
let isInitialized = false;
|
||||||
let queryParameterStyle = localStorage.getItem(`tabdata_queryParamStyle_${tabid}`) ?? '';
|
let queryParameterStyle =
|
||||||
|
localStorage.getItem(`tabdata_queryParamStyle_${tabid}`) ??
|
||||||
|
initialArgs?.queryParameterStyle ??
|
||||||
|
(initialArgs?.scriptTemplate == 'EXECUTE PROCEDURE' || initialArgs?.scriptTemplate == 'CALL FUNCTION' ? ':' : null);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ToolStripContainer bind:this={domToolStrip}>
|
<ToolStripContainer bind:this={domToolStrip}>
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ class MsSqlDumper extends SqlDumper {
|
|||||||
this.putCollection(
|
this.putCollection(
|
||||||
delimiter,
|
delimiter,
|
||||||
(parameters || []), param => {
|
(parameters || []), param => {
|
||||||
this.putRaw(argLiteralsByName[param]);
|
this.putRaw(argLiteralsByName[param.parameterName]);
|
||||||
if (param?.parameterMode == 'OUT') this.put(' ^output');
|
if (param?.parameterMode == 'OUT') this.put(' ^output');
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user