Updates
This commit is contained in:
@@ -116,6 +116,9 @@ function sqlGenerator({ tableName, genObject, dbFullName, count }) {
|
||||
}
|
||||
return `${finalDbName}${typeof mtch.source == "object" ? mtch.source.tableName : tableName}.${typeof mtch.source == "object" ? mtch.source.fieldName : mtch.source}=${(() => {
|
||||
if (mtch.targetLiteral) {
|
||||
if (typeof mtch.targetLiteral == "number") {
|
||||
return `${mtch.targetLiteral}`;
|
||||
}
|
||||
return `'${mtch.targetLiteral}'`;
|
||||
}
|
||||
if (join.alias) {
|
||||
|
||||
Vendored
+1
-1
@@ -1043,7 +1043,7 @@ export type ServerQueryParamsJoinMatchObject<Field extends object = {
|
||||
/** Field name from the **Join Table** */
|
||||
target?: keyof Field | ServerQueryParamsJoinMatchSourceTargetObject;
|
||||
/** A literal value: No source and target Needed! */
|
||||
targetLiteral?: string;
|
||||
targetLiteral?: string | number;
|
||||
__batch?: {
|
||||
matches: Omit<ServerQueryParamsJoinMatchObject<Field>, "__batch">[];
|
||||
operator: "AND" | "OR";
|
||||
|
||||
Reference in New Issue
Block a user