Skip to content

Missing quotes on alias when using where statement with VirtualColumn query #11148

@Zoggit8925

Description

@Zoggit8925

Issue description

When using a virtualColumn and add a expression with an alias and try to filter with a where statment on the find operation of a repository, the alias in the where statement is missing the double quotes

Expected Behavior

the Where statement has also the double quotes on the alias

Actual Behavior

image

in the Where statement the alias is missing the double quotes

Steps to reproduce

create a virtualColumn
use a query with an alias
create a repository
add a where statement with the virtualColumn in the find operation

My Environment

Dependency Version
Operating System
Node.js version x.y.zzz
Typescript version x.y.zzz
TypeORM version x.y.zzz

Additional Context

No response

Relevant Database Driver(s)

  • aurora-mysql
  • aurora-postgres
  • better-sqlite3
  • cockroachdb
  • cordova
  • expo
  • mongodb
  • mysql
  • nativescript
  • oracle
  • postgres
  • react-native
  • sap
  • spanner
  • sqlite
  • sqlite-abstract
  • sqljs
  • sqlserver

Are you willing to resolve this issue by submitting a Pull Request?

No, I don’t have the time and I’m okay to wait for the community / maintainers to resolve this issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions