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
7c8f81f3
Commit
7c8f81f3
authored
Nov 28, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-4.0/
into serg.mylan:/usr/home/serg/Abk/mysql-4.0
parents
3fcd4655
931f7a35
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
mysql-test/r/order_by.result
mysql-test/r/order_by.result
+4
-0
mysql-test/t/order_by.test
mysql-test/t/order_by.test
+8
-0
sql/sql_base.cc
sql/sql_base.cc
+1
-1
No files found.
mysql-test/r/order_by.result
View file @
7c8f81f3
...
@@ -542,3 +542,7 @@ a b
...
@@ -542,3 +542,7 @@ a b
1 2
1 2
5 NULL
5 NULL
DROP TABLE t1;
DROP TABLE t1;
CREATE TABLE t1 (a INT, b INT);
SET @id=0;
UPDATE t1 SET a=0 ORDER BY (a=@id), b;
DROP TABLE t1;
mysql-test/t/order_by.test
View file @
7c8f81f3
...
@@ -345,3 +345,11 @@ SELECT * FROM t1 ORDER BY (a + b);
...
@@ -345,3 +345,11 @@ SELECT * FROM t1 ORDER BY (a + b);
SELECT
*
FROM
t1
ORDER
BY
(
a
+
b
)
DESC
;
SELECT
*
FROM
t1
ORDER
BY
(
a
+
b
)
DESC
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
#
# Bug #1945 - Crashing bug with bad User Variables in UPDATE ... ORDER BY ...
#
CREATE
TABLE
t1
(
a
INT
,
b
INT
);
SET
@
id
=
0
;
UPDATE
t1
SET
a
=
0
ORDER
BY
(
a
=@
id
),
b
;
DROP
TABLE
t1
;
sql/sql_base.cc
View file @
7c8f81f3
...
@@ -1837,7 +1837,7 @@ find_item_in_list(Item *find,List<Item> &items)
...
@@ -1837,7 +1837,7 @@ find_item_in_list(Item *find,List<Item> &items)
}
}
}
}
else
if
(
!
table_name
&&
(
item
->
eq
(
find
,
0
)
||
else
if
(
!
table_name
&&
(
item
->
eq
(
find
,
0
)
||
find
->
name
&&
find
->
name
&&
item
->
name
&&
!
my_strcasecmp
(
item
->
name
,
find
->
name
)))
!
my_strcasecmp
(
item
->
name
,
find
->
name
)))
{
{
found
=
li
.
ref
();
found
=
li
.
ref
();
...
...
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