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
3c5286c3
Commit
3c5286c3
authored
Jun 24, 2005
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed encrypt() print (BUG#7024)
parent
a771b571
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
mysql-test/r/view.result
mysql-test/r/view.result
+8
-0
mysql-test/t/view.test
mysql-test/t/view.test
+12
-0
sql/item_strfunc.h
sql/item_strfunc.h
+1
-1
No files found.
mysql-test/r/view.result
View file @
3c5286c3
...
...
@@ -1831,3 +1831,11 @@ select * from v1;
t
01:00
drop view v1;
CREATE VIEW v1 AS SELECT ENCRYPT("dhgdhgd");
SELECT * FROM v1;
drop view v1;
CREATE VIEW v1 AS SELECT SUBSTRING_INDEX("dkjhgd:kjhdjh", ":", 1);
SELECT * FROM v1;
SUBSTRING_INDEX("dkjhgd:kjhdjh", ":", 1)
dkjhgd
drop view v1;
mysql-test/t/view.test
View file @
3c5286c3
...
...
@@ -1673,3 +1673,15 @@ create view v1(k, K) as select 1,2;
create
view
v1
as
SELECT
TIME_FORMAT
(
SEC_TO_TIME
(
3600
),
'%H:%i'
)
as
t
;
select
*
from
v1
;
drop
view
v1
;
#
# using encrypt & substring_index in view (BUG#7024)
#
CREATE
VIEW
v1
AS
SELECT
ENCRYPT
(
"dhgdhgd"
);
disable_result_log
;
SELECT
*
FROM
v1
;
enable_result_log
;
drop
view
v1
;
CREATE
VIEW
v1
AS
SELECT
SUBSTRING_INDEX
(
"dkjhgd:kjhdjh"
,
":"
,
1
);
SELECT
*
FROM
v1
;
drop
view
v1
;
sql/item_strfunc.h
View file @
3c5286c3
...
...
@@ -322,7 +322,7 @@ class Item_func_encrypt :public Item_str_func
Item_func_encrypt
(
Item
*
a
,
Item
*
b
)
:
Item_str_func
(
a
,
b
)
{}
String
*
val_str
(
String
*
);
void
fix_length_and_dec
()
{
maybe_null
=
1
;
max_length
=
13
;
}
const
char
*
func_name
()
const
{
return
"ecrypt"
;
}
const
char
*
func_name
()
const
{
return
"e
n
crypt"
;
}
};
#include "sql_crypt.h"
...
...
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