Skip to content

Commit 5d50088

Browse files
committed
Only include comment when DATAPLAN_PG_DEBUG=1 is set
1 parent c64e8b1 commit 5d50088

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

grafast/dataplan-pg/src/steps/pgSelect.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3843,7 +3843,10 @@ function buildQueryParts<TResource extends PgResource<any, any, any, any, any>>(
38433843
const extraSelectIndexes = extraSelects.map((_, i) => i + l);
38443844

38453845
return {
3846-
comment: sql.comment(`From ${info.sourceStepDescription}`, false),
3846+
comment: sql.comment(
3847+
`From ${info.sourceStepDescription}`,
3848+
process.env.DATAPLAN_PG_DEBUG === "1",
3849+
),
38473850
selects,
38483851
from,
38493852
joins: info.joins,

0 commit comments

Comments
 (0)