Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
8f2f5736
Commit
8f2f5736
authored
Jan 21, 2005
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge poseidon.ndb.mysql.com:/home/tomas/mysql-5.0
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
parents
500e582a
61b1de95
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
sql/ha_federated.cc
sql/ha_federated.cc
+3
-2
No files found.
sql/ha_federated.cc
View file @
8f2f5736
...
@@ -973,6 +973,7 @@ inline uint field_in_record_is_null (
...
@@ -973,6 +973,7 @@ inline uint field_in_record_is_null (
int
ha_federated
::
write_row
(
byte
*
buf
)
int
ha_federated
::
write_row
(
byte
*
buf
)
{
{
int
x
=
0
,
num_fields
=
0
;
int
x
=
0
,
num_fields
=
0
;
Field
**
field
;
ulong
current_query_id
=
1
;
ulong
current_query_id
=
1
;
ulong
tmp_query_id
;
ulong
tmp_query_id
;
int
all_fields_have_same_query_id
=
1
;
int
all_fields_have_same_query_id
=
1
;
...
@@ -1021,7 +1022,7 @@ int ha_federated::write_row(byte * buf)
...
@@ -1021,7 +1022,7 @@ int ha_federated::write_row(byte * buf)
0 if it remains 0, then that means no fields were specified in the query
0 if it remains 0, then that means no fields were specified in the query
such as in the case of INSERT INTO table VALUES (val1, val2, valN)
such as in the case of INSERT INTO table VALUES (val1, val2, valN)
*/
*/
for
(
Field
**
field
=
table
->
field
;
*
field
;
field
++
,
x
++
)
for
(
field
=
table
->
field
;
*
field
;
field
++
,
x
++
)
{
{
if
(
x
>
0
&&
tmp_query_id
!=
(
*
field
)
->
query_id
)
if
(
x
>
0
&&
tmp_query_id
!=
(
*
field
)
->
query_id
)
all_fields_have_same_query_id
=
0
;
all_fields_have_same_query_id
=
0
;
...
@@ -1032,7 +1033,7 @@ int ha_federated::write_row(byte * buf)
...
@@ -1032,7 +1033,7 @@ int ha_federated::write_row(byte * buf)
loop through the field pointer array, add any fields to both the values
loop through the field pointer array, add any fields to both the values
list and the fields list that match the current query id
list and the fields list that match the current query id
*/
*/
for
(
Field
**
field
=
table
->
field
;
*
field
;
field
++
,
x
++
)
for
(
field
=
table
->
field
;
*
field
;
field
++
,
x
++
)
{
{
DBUG_PRINT
(
"ha_federated::write_row"
,
(
"field type %d"
,
(
*
field
)
->
type
()));
DBUG_PRINT
(
"ha_federated::write_row"
,
(
"field type %d"
,
(
*
field
)
->
type
()));
// if there is a query id and if it's equal to the current query id
// if there is a query id and if it's equal to the current query id
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment