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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
035d92f4
Commit
035d92f4
authored
Oct 04, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge
sql/sql_show.cc: Auto merged sql/ha_ndbcluster.cc: SCCS merged
parents
599a7842
ab600d16
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
18 deletions
+29
-18
mysql-test/r/ndb_blob.result
mysql-test/r/ndb_blob.result
+5
-0
mysql-test/t/ndb_blob.test
mysql-test/t/ndb_blob.test
+5
-0
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+16
-13
sql/item.cc
sql/item.cc
+1
-1
sql/sql_class.h
sql/sql_class.h
+0
-2
sql/sql_show.cc
sql/sql_show.cc
+2
-2
No files found.
mysql-test/r/ndb_blob.result
View file @
035d92f4
...
...
@@ -397,4 +397,9 @@ select * from t1 order by a;
a b
1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
drop table t1;
mysql-test/t/ndb_blob.test
View file @
035d92f4
...
...
@@ -309,6 +309,7 @@ select count(*) from t1;
drop
table
t1
;
drop
database
mysqltest
;
# bug #5349
set
autocommit
=
1
;
use
test
;
CREATE
TABLE
t1
(
...
...
@@ -325,4 +326,8 @@ INSERT INTO t1 VALUES
select
*
from
t1
order
by
a
;
alter
table
t1
engine
=
ndb
;
select
*
from
t1
order
by
a
;
# bug #5872
alter
table
t1
engine
=
myisam
;
select
*
from
t1
order
by
a
;
drop
table
t1
;
sql/ha_ndbcluster.cc
View file @
035d92f4
...
...
@@ -1195,18 +1195,21 @@ inline int ha_ndbcluster::next_result(byte *buf)
be sent to NDB
*/
DBUG_PRINT
(
"info"
,
(
"ops_pending: %d"
,
ops_pending
));
if
(
current_thd
->
transaction
.
on
)
if
(
ops_pending
)
{
if
(
ops_pending
&&
(
execute_no_commit
(
this
,
trans
)
!=
0
))
DBUG_RETURN
(
ndb_err
(
trans
));
}
else
{
if
(
ops_pending
&&
(
execute_commit
(
this
,
trans
)
!=
0
))
DBUG_RETURN
(
ndb_err
(
trans
));
trans
->
restart
();
if
(
current_thd
->
transaction
.
on
)
{
if
(
execute_no_commit
(
this
,
trans
)
!=
0
)
DBUG_RETURN
(
ndb_err
(
trans
));
}
else
{
if
(
execute_commit
(
this
,
trans
)
!=
0
)
DBUG_RETURN
(
ndb_err
(
trans
));
DBUG_ASSERT
(
trans
->
restart
()
==
0
);
}
ops_pending
=
0
;
}
ops_pending
=
0
;
contact_ndb
=
(
check
==
2
);
}
...
...
@@ -1641,7 +1644,7 @@ int ha_ndbcluster::write_row(byte *record)
no_uncommitted_rows_execute_failure
();
DBUG_RETURN
(
ndb_err
(
trans
));
}
trans
->
restart
(
);
DBUG_ASSERT
(
trans
->
restart
()
==
0
);
}
}
if
((
has_auto_increment
)
&&
(
skip_auto_increment
))
...
...
@@ -2278,7 +2281,7 @@ int ha_ndbcluster::rnd_init(bool scan)
{
if
(
!
scan
)
DBUG_RETURN
(
1
);
cursor
->
restart
();
DBUG_ASSERT
(
cursor
->
restart
()
==
0
);
}
index_init
(
table
->
primary_key
);
DBUG_RETURN
(
0
);
...
...
@@ -2435,7 +2438,7 @@ void ha_ndbcluster::info(uint flag)
DBUG_PRINT
(
"info"
,
(
"HA_STATUS_CONST"
));
set_rec_per_key
();
}
if
(
flag
&
HA_STATUS_ERRKEY
)
if
(
flag
&
HA_STATUS_ERRKEY
)
{
DBUG_PRINT
(
"info"
,
(
"HA_STATUS_ERRKEY"
));
errkey
=
dupkey
;
...
...
sql/item.cc
View file @
035d92f4
...
...
@@ -1999,7 +1999,7 @@ bool Item_ref::fix_fields(THD *thd,TABLE_LIST *tables, Item **reference)
}
else
if
(
tmp
!=
not_found_field
)
{
ref
=
0
;
// To prevent "delete *ref;" on ~Item_
er
f() of this item
ref
=
0
;
// To prevent "delete *ref;" on ~Item_
re
f() of this item
Item_field
*
fld
;
if
(
!
((
*
reference
)
=
fld
=
new
Item_field
(
tmp
)))
return
1
;
...
...
sql/sql_class.h
View file @
035d92f4
...
...
@@ -1264,8 +1264,6 @@ public:
bool
send_fields
(
List
<
Item
>
&
list
,
uint
flag
)
{
return
0
;
};
bool
send_data
(
List
<
Item
>
&
items
)
=
0
;
bool
send_eof
()
{
return
0
;
};
friend
class
Ttem_subselect
;
};
/* Single value subselect interface class */
...
...
sql/sql_show.cc
View file @
035d92f4
...
...
@@ -1140,7 +1140,7 @@ static const char *require_quotes(const char *name, uint name_length)
for
(
;
name
<
end
;
name
++
)
{
uchar
chr
=
(
uchar
)
*
name
;
length
=
my_mbcharlen
(
system_charset_info
,
chr
);
length
=
my_mbcharlen
(
system_charset_info
,
(
uchar
)
chr
);
if
(
length
==
1
&&
!
system_charset_info
->
ident_map
[
chr
])
return
name
;
}
...
...
@@ -1169,7 +1169,7 @@ append_identifier(THD *thd, String *packet, const char *name, uint length)
for
(
name_end
=
name
+
length
;
name
<
name_end
;
name
+=
length
)
{
char
chr
=
*
name
;
length
=
my_mbcharlen
(
system_charset_info
,
chr
);
length
=
my_mbcharlen
(
system_charset_info
,
(
uchar
)
chr
);
if
(
length
==
1
&&
chr
==
quote_char
)
packet
->
append
(
&
quote_char
,
1
,
system_charset_info
);
packet
->
append
(
name
,
length
,
packet
->
charset
());
...
...
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