We have a database that has one particular table, searchdata, that has the
following columns
 
BINARY key_low(5)
BINARY key_high(5)
VARCHAR searchss(255)
 
The following query, when the SET QUERY UTF8 option is present, doesn't work
because MySQL encodes the binary field.
Any ideas how we get around this?
We're running 4.1.5a gamma and the table encoding is set to utf8.
 
SELECT searchsss FROM searchdata WHERE '$D6@/' BETWEEN key_low AND key_high;
 
Kevin Cowley
R&D
 
Tel: 0118 902 9099 (direct line)
Email: [EMAIL PROTECTED]
Web: http://www.alchemetrics.co.uk
 


**************************************************************************************
ALCHEMETRICS LIMITED (ALCHEMETRICS)
Mulberry Park, Fishponds Road, Wokingham, Berkshire, RG41 2GX
Tel:  +44 (0) 118 902 9000    Fax:  +44 (0) 118 902 9001
This e-mail is confidential and is intended for the use of the addressee only.
If you are not the intended recipient, you are hereby notified that you must 
not use, copy, disclose, otherwise disseminate or take any action based on 
this e-mail or any information herein.
If you receive this transmission in error, please notify the sender
immediately by reply e-mail or by using the contact details above and then
delete this e-mail.
Please note that e-mail may be susceptible to data corruption, interception 
and unauthorised amendment.  Alchemetrics does not accept any liability for 
any such corruption, interception, amendment or the consequences thereof.
**************************************************************************************

Reply via email to