Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions internal/stackql/astformat/ast_format_postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ var (

func PostgresSelectExprsFormatter(buf *sqlparser.TrackedBuffer, node sqlparser.SQLNode) {
switch node := node.(type) {
case *sqlparser.ColName:
buf.WriteString(fmt.Sprintf(`"%s"`, node.GetRawVal()))
case sqlparser.ColIdent:
formatColIdent(node, buf)
return
Expand Down
2 changes: 1 addition & 1 deletion internal/stackql/parserutil/parser_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ func inferColNameFromExpr(node *sqlparser.AliasedExpr, formatter sqlparser.NodeF
case *sqlparser.ColName:
retVal.Name = expr.Name.String()
retVal.Qualifier = expr.Qualifier.GetRawVal()
decoratedCol := expr.GetRawVal()
decoratedCol := astformat.String(expr, formatter)
// if decoratedCol != retVal.Name {
retVal.Alias = alias
retVal.DecoratedColumn = getDecoratedColRendition(decoratedCol, alias)
Expand Down
1 change: 0 additions & 1 deletion test/robot/functional/stackql_sessions.robot
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ PG Session Server Survives Defective Query
[Teardown] NONE

PG Session Postgres Client V2 Typed Queries
Pass Execution If "${SQL_BACKEND}" == "postgres_tcp" TODO: FIX THIS... Skipping postgres backend test likely due to case sensitivity and incorrect XML property aliasing
Should PG Client V2 Session Inline Equal
... ${PSQL_MTLS_CONN_STR_UNIX}
... ${SELECT_AWS_CLOUD_CONTROL_EVENTS_MINIMAL}
Expand Down