Substring & escape Character - Mailing list pgsql-novice

From Michael Weaver
Subject Substring & escape Character
Date
Msg-id 3B663B41B350D311AEEF00A0C9254563201A79@VISION1
Whole thread Raw
Responses Re: Substring & escape Character
List pgsql-novice

I am getting the error:

ERROR:  ESCAPE string must be empty or one character

on the line:

last := substring (name from 1 for pos);

where name is a text field and pos is an integer.

what am i doing wrong?

,

Mike Weaver
Software Developer

5, 42 Ladner Street
O'Connor, WA, 6163
All correspondence:
PO Box Y3502
East St Georges Terrace
Perth WA 6832

P: (+618) 9331 2700
F: (+618) 9331 3733
M: 0403 385 181
W: http://www.corpusglobe.com/
E: mweaver@corpusglobe.com

This email is intended only for the use of the individual or entity named above and may contain information that is confidential. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this email is strictly prohibited. When addressed to our clients, any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing Corpus Globe client engagement letter. If you have received this Email in error, please notify us immediately by return email or telephone +61 8 9331 2700 and destroy the original message. Thank You.

pgsql-novice by date:

Previous
From: glenn
Date:
Subject: Why would this crash my server
Next
From: Tom Lane
Date:
Subject: Re: Why would this crash my server