mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 13:23:58 +00:00
default parameter encoding for execute scripts
This commit is contained in:
@@ -173,6 +173,7 @@ registerCommand({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (isProApp()) {
|
||||||
registerCommand({
|
registerCommand({
|
||||||
id: 'new.queryDesign',
|
id: 'new.queryDesign',
|
||||||
category: 'New',
|
category: 'New',
|
||||||
@@ -184,6 +185,7 @@ registerCommand({
|
|||||||
getCurrentDatabase() &&
|
getCurrentDatabase() &&
|
||||||
findEngineDriver(getCurrentDatabase()?.connection, getExtensions())?.databaseEngineTypes?.includes('sql'),
|
findEngineDriver(getCurrentDatabase()?.connection, getExtensions())?.databaseEngineTypes?.includes('sql'),
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (isProApp()) {
|
if (isProApp()) {
|
||||||
registerCommand({
|
registerCommand({
|
||||||
@@ -229,6 +231,7 @@ if (isProApp()) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isProApp()) {
|
||||||
registerCommand({
|
registerCommand({
|
||||||
id: 'new.perspective',
|
id: 'new.perspective',
|
||||||
category: 'New',
|
category: 'New',
|
||||||
@@ -237,6 +240,7 @@ registerCommand({
|
|||||||
menuName: 'New perspective',
|
menuName: 'New perspective',
|
||||||
onClick: () => newPerspective(),
|
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