Double byte database - like '%' bug
From: Chrysa Chaves <chrysac_at_compaq.com>
Date: 1995/04/26
Message-ID: <D7nyAs.LBF_at_twisto.eng.hou.compaq.com>#1/1
Date: 1995/04/26
Message-ID: <D7nyAs.LBF_at_twisto.eng.hou.compaq.com>#1/1
Our team has encountered a problem using 7.1.4 Kanji Instance (a double byte instance)
I will explain the problem using an example:
Table: emp (emp_name varchar2(20), age NUMBER) Primary Key: emp_name.
SELECT COUNT(*) INTO :local_variable1
FROM EMP
WHERE EMP_NAME LIKE :local_varible2;
If the LOCAL_VARIBLE2 IS = '%' , THE QUERY RETURNS 0, instead of returning the number of rows in the table.
Please Note:
- This problem exists on our 7.1.4 Kanji instance
- The column in where clause is a Primary Key
- local_variable2 is dynamic.
- Have tested this using Pro*C & PowerBuilder.
Does anyone know any work arounds / fixes to this problem ??
Thanks Received on Wed Apr 26 1995 - 00:00:00 CEST