Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Single quote characters from data are not escaped when performing inserts #182

@mbjones

Description

@mbjones

Author Name: Chad Burt (Chad Burt)
Original Redmine Issue: 2756, https://projects.ecoinformatics.org/ecoinfo/issues/2756
Original Date: 2007-02-01
Original Assignee: Jing Tao


recieved this error:
DatabaseLoader.run(): Error message: ERROR: syntax error at or near "only"
regarding this line:
INSERT into ... calm','"adrift; CTD dropped to 100' only; slight breeze"'

It seems that if a single quote is present within the data being entered it is not escaped. On this line "only" is seen as a postgres command since "100'" came before it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions