Bug #21284 Add Field::needs_quote() method and use it in Federated
Submitted: 25 Jul 2006 19:59 Modified: 30 Aug 2006 19:39
Reporter: Jim Winstead Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Federated storage engine Severity:S3 (Non-critical)
Version:5.1 OS:Any (All)
Assigned to: Jim Winstead CPU Architecture:Any
Tags: federated

[25 Jul 2006 19:59] Jim Winstead
Description:
The patch to fix Bug #17608 ripped out the Field::needs_quote() method on the grounds that it was gross (and in the way). It should be restored

How to repeat:
Look at the queries sent to the remote server for a query like "SELECT a FROM federated_table WHERE a = 1234".

Suggested fix:
Re-implement Field::needs_quote() as a virtual method, and use it in ha_federated.cc.
[25 Jul 2006 23:04] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/9559
[11 Aug 2006 19:41] Jim Winstead
Pushed patch to mysql-5.1-new-maint.
[16 Aug 2006 15:49] Jim Winstead
Fixed in 5.1.12. (Not sure that it needs to be documented.)
[30 Aug 2006 19:39] Paul DuBois
No changelog entry needed.