Re: casting Bangla characters to NUMERIC

2019-11-25 Thread Bob Jolliffe
select translate(string,'০১২৩৪৫৬৭৮৯','0123456789'); seems to do the trick. On Mon, 25 Nov 2019 at 16:38, Bob Jolliffe wrote: > > Thanks Tom. That is what I expected to hear. Was being hopeful ... > > On Mon, 25 Nov 2019 at 16:27, Tom Lane wrote: > > > > Bob Jolliffe writes: > > > I have an

Re: casting Bangla characters to NUMERIC

2019-11-25 Thread Bob Jolliffe
Thanks Tom. That is what I expected to hear. Was being hopeful ... On Mon, 25 Nov 2019 at 16:27, Tom Lane wrote: > > Bob Jolliffe writes: > > I have an interesting problem. I have a string field in a table which > > (sometimes) is expected to contain numeric values ie. a cast of the > > fiel

Re: casting Bangla characters to NUMERIC

2019-11-25 Thread Tom Lane
Bob Jolliffe writes: > I have an interesting problem. I have a string field in a table which > (sometimes) is expected to contain numeric values ie. a cast of the > field to INTEGER is supposed to succeed. > My issue is that the application is running in Bangladesh, and > sometimes the users ha