#5503 closed defect (bug) (fixed)
WP-DB Never do a "SET NAMES" Query
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 2.5 | Priority: | high |
| Severity: | critical | Version: | 2.3 |
| Component: | General | Keywords: | has-patch needs-testing |
| Focuses: | Cc: |
Description (last modified by )
Because when the set names query suppose to be executed the constructor its not properly completed.
Bug Introduced in the changeset [6458]
Attachments (1)
Change History (11)
#2
@
18 years ago
- Milestone changed from 2.3.2 to 2.4
- Do you have mysql version greater than 4.1.0? What is your MySQL version?
- Do you have charset set? If so, what value is charset set to?
Setting milestone to 2.4 since usually fixed on trunk, then back ported.
#3
@
18 years ago
Well you are misunderstanding the problem (i think)...
First Answering you...
1) Yes, 5.0.27
2) Yes, utf8
Second explaining a little further, when the database construct the object before it select the database the system uses a SET NAMES query, since the changeset 6458 the database object only executes querys if the constructor has been successfully builded...
And since by the time the constructor launches the SET NAMES query the constructor has not finished "building", the var ready its not set to true (by default $ready is set to false) the query method drops the execution and return false...
I hope this help you understanding the problem...
#4
@
18 years ago
Okay, this makes sense. I know what the problem is and it has a pretty trivial solution, but I won't take ownership of this problem. I'm working on something else at the moment.
Since the problem has been clearly explained, I'm sure someone will come along and fix it before I could.
#5
@
18 years ago
- Keywords has-patch needs-testing added; needs-patch removed
Ha ha, couldn't help myself. Can you test this to see if it fixes your issue?
[6458]