Verify and Repair: PostgreSQL query error

This forum is intended for cases when a problem can not be solved due to restrictions of the platform: a bug or lack of functionality.

#1
People who like this:0Yes/0No
Active user
Rating: 2
Joined: May 15, 2013
Company:

Hello,
I ran into this error while running Verify and Repair on 1C 8.3.5.1383 and PostgreSQL 9.3.4-1.1C:

Quote

EET ERROR: invalid regular expression: invalid character range

PostgreSQL query:
Code
UPDATE _Document91_VT1758 SET _Fld1761_TYPE = '\\001'::bytea, _Fld1761_S = ''::mvarchar, _Fld1761_RTRef = '\\000\\000\\000\\000'::bytea, _Fld1761_RRRef = '\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000'::bytea
        WHERE (_Document91_VT1758._LineNo1759 = 1
   AND _Document91_VT1758._Fld1760RRef = '\\206q\\000\\025\\027\\015\\375\\213\\021\\337\\264\\016\\240\\211\\023\\341'::bytea
   AND _Document91_VT1758._Fld1761_TYPE = '\\010'::bytea
   AND _Document91_VT1758._Fld1761_S = ''::mvarchar
   AND _Document91_VT1758._Fld1761_RTRef = '\\000\\000\\000u'::bytea
   AND _Document91_VT1758._Fld1761_RRRef = '\\230M\\000\\014)\\236''\\374\\021\\342:3\\177\\3762:'::bytea
   AND (_Document91_VT1758._Fld11071)::mvarchar SIMILAR TO ('Prepayment: 12 944.79 EUR \\(30.00 % from 43 149.31 EUR [DOC 01AB-1234ABC]\\)'::mvarchar))
   AND _Document91_VT1758._Document91_IDRRef = '\\203V\\000\\014)\\236''\\374\\021\\342\\204\\311\\311W\\340\\217'::bytea


Problem:
A comment field in 1C (Variable string, unlimited) is incorrectly escaped in PostgreSQL:
Code
AND (_Document91_VT1758._Fld11071)::mvarchar SIMILAR TO
('Prepayment: 12 944.79 EUR \\(30.00 % from 43 149.31 EUR [DOC 01AB-1234ABC]\\)'::mvarchar))


All special characters should be fully escaped:
Code
AND (_Document91_VT1758._Fld11071)::mvarchar SIMILAR TO
('Prepayment: 12 944.79 EUR \\(30.00 \\% from 43 149.31 EUR \\[DOC 01AB-1234ABC\\]\\)'::mvarchar))

 
#2
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Thank you for the information, Aurimas Fišeras!
I'm sorry for the late reply. We are investigating the problem.

 
#3
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Aurimas Fišeras!

Can you create a sample infobase which we can use to reproduce the issue? We have used the attached sample and UTF-8 collation settings for PostgreSQL. The error did not appear.

Download 1Cv8.dt (9.44 KB)
 
#4
People who like this:0Yes/0No
Active user
Rating: 2
Joined: May 15, 2013
Company:

Quote
Timofey Bugaevsky wrote:
Can you create a sample infobase which we can use to reproduce the issue? We have used the attached sample and UTF-8 collation settings for PostgreSQL. The error did not appear.

Hello, Timofey Bugaevsky.

I managed to create a dt (locale: Lithuanian (Lithuania)) that exposes the problem. Just load it and run "Verify and Repair" with "Delete References" selected.

 
#5
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Thank you very much for your cooperation!
We were able to reproduce the error, and this issue will be fixed in one of future versions of 1C:Enterprise platform.

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.