6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/26/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#606] Typecasting required in whups/lib/Driver/sql.php on Oracle
*
Your Email Address
*
Spam protection
Enter the letters below:
. . .. ,.___..__ |\ | | \./ _/ | \ | \|\__| | ./__.|__/
Comment
> Attempt to fetch comments, file whups/lib/Driver/sql.php,v 1.195, > > function _getHistory(). > > The JOINs fail on Oracle, for example line 823: > > > > $join .= 'LEFT JOIN whups_queues ON whups_logs.log_type = \'queue\' > AND whups_logs.log_value = whups_queues.queue_id '; > > > > The clause whups_logs.log_value = whups_queues.queue_id causes an > error ORA-017222: invalid number because whups_queues.queue_id is > NUMBER, whups_logs.log_value is VARCHAR and contains non-numeric > values (comments itself). So implicit type conversion is failed. > > Suggest explicit portable typecasting for NUMBER fields in all JOINs, > something like this: > > > > $join .= 'LEFT JOIN whups_queues ON whups_logs.log_type = \'queue\' > AND whups_logs.log_value = cast(whups_queues.queue_id as character) '; > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers