|
[
Permalink
| « Hide
]
Dmitry Yemanov added a comment - 14/Dec/11 04:16 AM
What was the connection charset? Please also post a DDL for the ORG_DELIVERY table.
Once more, what was the *connection* charset? What is the data type of UIDORG? It would be much better if you could post a reproducible test case or attach the database to this ticket.
Oh, sorry, I'm forgot.
The query like this (without one field): select ID, TEXT, PARENTID, CONDITIONS, STMT from TREE_TEST1 working properly but like this: select ID, TEXT, PARENTID, CONDITIONS, STMT, RULFNAME from TREE_TEST1 not working And this sample working OK 1. CREATE TABLE TREE_HEADER ( ID INTEGER NOT NULL, TEXT VC254 /* VC254 = VARCHAR(254) */, PARENTID INTEGER, CONDITIONS VC254 /* VC254 = VARCHAR(254) */, STMT VC254 /* VC254 = VARCHAR(254) */, RULFNAME VC30 /* VC30 = VARCHAR(30) */ ); 2. INSERT INTO TREE_HEADER (ID, TEXT, PARENTID, CONDITIONS, STMT, RULFNAME) VALUES (1, 'Организации', 0, NULL, NULL, NULL); 3. And changing view TREE_TEST, add union select ID, TEXT, PARENTID, CONDITIONS, STMT, RULFNAME from TREE_HEADER where id = 1 union select 0, 'Организации', NULL, '', '' , 'KODORG' from org_delivery union select uidorg , nameorg , '0' , ' G.UIDORG = ' || '''' || uidorg || '''' , '' , 'KODORG' from org_delivery The problem is somehow related to the RELFNAME field:
select RULFNAME from TREE_TEST1 -- ERROR Agree, this work properly
When explicit cast to same type and length CREATE OR ALTER VIEW TREE_TEST1( ID, TEXT, PARENTID, CONDITIONS, STMT, RULFNAME) AS select 0, 'Организации', NULL, '', '' , cast('KODORG' as char(6)) from org_delivery union select uidorg , nameorg , '0' , ' G.UIDORG = ' || '''' || uidorg || '''' , '' , cast('KODORG' as char(6)) from org_delivery ; The problem appears only if the view has been created in the multi-byte connection charset (UTF8 in this case).
Please test the next (tomorrow's) snapshot build, it should have the issue fixed.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||