Skip to content

PostgresSQL: public schema export does not escape single quotes #1008

@nicofrand

Description

@nicofrand

Describe the bug

The exported SQL file is unusable because the single quotes are not escaped.

INSERT INTO "public"."TestingTable" ("configuration") VALUES ('BUG à l\'apostrophe');# INSERT INTO `TestingTable` (`configuration`) VALUES ("Bug à l'apostrophe");

To Reproduce

  1. Create a table "TestingTable" in a postgresql database
  2. Add a "configuration" field with type "text"
  3. Insert a row with the following content: Bug à l'apostrophe such as below
  4. Export the public schema as a single SQL file
Image

Expected behavior

The single quotes are properly escaped.

Screenshots

Image

Application (please complete the following information):

Environment (please complete the following information):

  • OS name: Kubuntu
  • OS version: 25.04
  • DB name: Postgresql
  • DB version: 17

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions