Details
Description
Wildcard characters do not match newline characters
0: jdbc:phoenix:thin:url=http://localhost:876> create table testnewline (pk varchar(10) primary key) . . . . . . . . . . . . . . . . . . . . . . .> ; No rows affected (2.643 seconds) 0: jdbc:phoenix:thin:url=http://localhost:876> upsert into testnewline values ('AA\nA'); 1 row affected (0.079 seconds) 0: jdbc:phoenix:thin:url=http://localhost:876> select * from testnewline where pk like 'AA%' . . . . . . . . . . . . . . . . . . . . . . .> ; +------------+ | PK | +------------+ | AA A | +------------+ 1 row selected (0.086 seconds) 0: jdbc:phoenix:thin:url=http://localhost:876> select * from testnewline where pk like 'AA_A'; +------------+ | PK | +------------+ +------------+ No rows selected (0.053 seconds) 0: jdbc:phoenix:thin:url=http://localhost:876> select * from testnewline where pk like 'AA%A'; +------------+ | PK | +------------+ +------------+ No rows selected (0.032 seconds) 0: jdbc:phoenix:thin:url=http://localhost:876>
Attachments
Issue Links
- is cloned by
-
PHOENIX-2643 LIKE predicate single-character wildcard '_' does not match any characters in a CHAR column
- Resolved
- links to