Skip to content

Unimplemented TRAILING function #467

@ThiBsc

Description

@ThiBsc

Describe the bug

Have a typeorm migration trying to use the trailing function of postgres

QueryFailedError: 💔 Your query failed to parse.
    This is most likely due to a SQL syntax error. However, you might also have hit a bug, or an unimplemented feature of pg-mem.
    If this is the case, please file an issue at https://github.com/oguimbal/pg-mem along with a query that reproduces this syntax error.

    👉 Failed query:

        UPDATE "mytable" SET guid = TRIM(TRAILING chr(10) FROM guid) WHERE guid LIKE '%' || chr(10);

    💀 Syntax error at line 1 col 30:

    1  UPDATE "mytable" SET guid = TRIM(TRAILING chr(10) FROM guid) WHERE guid LIKE '%' || chr(10);

pg-mem version

# output of:
cat ./node_modules/pg-mem/package.json | grep version

# "version": "3.0.5",
# "description": "A memory version of postgres"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions