Updates
This commit is contained in:
parent
92290f3796
commit
a642034eea
@ -121,7 +121,17 @@ function sqlGenerator({ tableName, genObject }) {
|
|||||||
return `'${mtch.targetLiteral}'`;
|
return `'${mtch.targetLiteral}'`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (join.alias) return `${join.alias}.${mtch.target}`;
|
if (join.alias) {
|
||||||
|
return `${
|
||||||
|
typeof mtch.target == "object"
|
||||||
|
? mtch.target.tableName
|
||||||
|
: join.alias
|
||||||
|
}.${
|
||||||
|
typeof mtch.target == "object"
|
||||||
|
? mtch.target.fieldName
|
||||||
|
: mtch.target
|
||||||
|
}`;
|
||||||
|
}
|
||||||
|
|
||||||
return `${
|
return `${
|
||||||
typeof mtch.target == "object"
|
typeof mtch.target == "object"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@moduletrace/datasquirel",
|
"name": "@moduletrace/datasquirel",
|
||||||
"version": "3.2.7",
|
"version": "3.2.8",
|
||||||
"description": "Cloud-based SQL data management tool",
|
"description": "Cloud-based SQL data management tool",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
Loading…
Reference in New Issue
Block a user