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
73aea0a7
Commit
73aea0a7
authored
Feb 06, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-5499 install_spider.sql tries to create tables with DEFAULT clause for TEXT columns
parent
ceae5aaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
42 deletions
+42
-42
storage/spider/scripts/install_spider.sql
storage/spider/scripts/install_spider.sql
+42
-42
No files found.
storage/spider/scripts/install_spider.sql
View file @
73aea0a7
...
...
@@ -34,16 +34,16 @@ create table if not exists mysql.spider_xa_member(
scheme
char
(
64
)
not
null
default
''
,
host
char
(
64
)
not
null
default
''
,
port
char
(
5
)
not
null
default
''
,
socket
text
not
null
default
''
,
socket
text
not
null
,
username
char
(
64
)
not
null
default
''
,
password
char
(
64
)
not
null
default
''
,
ssl_ca
text
default
null
,
ssl_capath
text
default
null
,
ssl_cert
text
default
null
,
ssl_ca
text
,
ssl_capath
text
,
ssl_cert
text
,
ssl_cipher
char
(
64
)
default
null
,
ssl_key
text
default
null
,
ssl_key
text
,
ssl_verify_server_cert
tinyint
not
null
default
0
,
default_file
text
default
null
,
default_file
text
,
default_group
char
(
64
)
default
null
,
key
idx1
(
data
,
format_id
,
gtrid_length
,
host
)
)
engine
=
MyISAM
default
charset
=
utf8
collate
=
utf8_bin
;
...
...
@@ -55,16 +55,16 @@ create table if not exists mysql.spider_xa_failed_log(
scheme
char
(
64
)
not
null
default
''
,
host
char
(
64
)
not
null
default
''
,
port
char
(
5
)
not
null
default
''
,
socket
text
not
null
default
''
,
socket
text
not
null
,
username
char
(
64
)
not
null
default
''
,
password
char
(
64
)
not
null
default
''
,
ssl_ca
text
default
null
,
ssl_capath
text
default
null
,
ssl_cert
text
default
null
,
ssl_ca
text
,
ssl_capath
text
,
ssl_cert
text
,
ssl_cipher
char
(
64
)
default
null
,
ssl_key
text
default
null
,
ssl_key
text
,
ssl_verify_server_cert
tinyint
not
null
default
0
,
default_file
text
default
null
,
default_file
text
,
default_group
char
(
64
)
default
null
,
thread_id
int
default
null
,
status
char
(
8
)
not
null
default
''
,
...
...
@@ -80,16 +80,16 @@ create table if not exists mysql.spider_tables(
scheme
char
(
64
)
default
null
,
host
char
(
64
)
default
null
,
port
char
(
5
)
default
null
,
socket
text
default
null
,
socket
text
,
username
char
(
64
)
default
null
,
password
char
(
64
)
default
null
,
ssl_ca
text
default
null
,
ssl_capath
text
default
null
,
ssl_cert
text
default
null
,
ssl_ca
text
,
ssl_capath
text
,
ssl_cert
text
,
ssl_cipher
char
(
64
)
default
null
,
ssl_key
text
default
null
,
ssl_key
text
,
ssl_verify_server_cert
tinyint
not
null
default
0
,
default_file
text
default
null
,
default_file
text
,
default_group
char
(
64
)
default
null
,
tgt_db_name
char
(
64
)
default
null
,
tgt_table_name
char
(
64
)
default
null
,
...
...
@@ -106,16 +106,16 @@ create table if not exists mysql.spider_link_mon_servers(
scheme
char
(
64
)
default
null
,
host
char
(
64
)
default
null
,
port
char
(
5
)
default
null
,
socket
text
default
null
,
socket
text
,
username
char
(
64
)
default
null
,
password
char
(
64
)
default
null
,
ssl_ca
text
default
null
,
ssl_capath
text
default
null
,
ssl_cert
text
default
null
,
ssl_ca
text
,
ssl_capath
text
,
ssl_cert
text
,
ssl_cipher
char
(
64
)
default
null
,
ssl_key
text
default
null
,
ssl_key
text
,
ssl_verify_server_cert
tinyint
not
null
default
0
,
default_file
text
default
null
,
default_file
text
,
default_group
char
(
64
)
default
null
,
primary
key
(
db_name
,
table_name
,
link_id
,
sid
)
)
engine
=
MyISAM
default
charset
=
utf8
collate
=
utf8_bin
;
...
...
@@ -250,12 +250,12 @@ begin
alter
table
mysql
.
spider_xa_member
drop
primary
key
,
add
index
idx1
(
data
,
format_id
,
gtrid_length
,
host
),
modify
socket
text
not
null
default
''
,
modify
ssl_ca
text
default
null
,
modify
ssl_capath
text
default
null
,
modify
ssl_cert
text
default
null
,
modify
ssl_key
text
default
null
,
modify
default_file
text
default
null
;
modify
socket
text
not
null
,
modify
ssl_ca
text
,
modify
ssl_capath
text
,
modify
ssl_cert
text
,
modify
ssl_key
text
,
modify
default_file
text
;
end
if
;
select
COLUMN_TYPE
INTO
@
col_type
from
INFORMATION_SCHEMA
.
COLUMNS
where
TABLE_SCHEMA
=
'mysql'
...
...
@@ -263,12 +263,12 @@ begin
AND
COLUMN_NAME
=
'socket'
;
if
@
col_type
=
'char(64)'
then
alter
table
mysql
.
spider_tables
modify
socket
text
default
null
,
modify
ssl_ca
text
default
null
,
modify
ssl_capath
text
default
null
,
modify
ssl_cert
text
default
null
,
modify
ssl_key
text
default
null
,
modify
default_file
text
default
null
;
modify
socket
text
,
modify
ssl_ca
text
,
modify
ssl_capath
text
,
modify
ssl_cert
text
,
modify
ssl_key
text
,
modify
default_file
text
;
end
if
;
select
COLUMN_TYPE
INTO
@
col_type
from
INFORMATION_SCHEMA
.
COLUMNS
where
TABLE_SCHEMA
=
'mysql'
...
...
@@ -276,12 +276,12 @@ begin
AND
COLUMN_NAME
=
'socket'
;
if
@
col_type
=
'char(64)'
then
alter
table
mysql
.
spider_link_mon_servers
modify
socket
text
default
null
,
modify
ssl_ca
text
default
null
,
modify
ssl_capath
text
default
null
,
modify
ssl_cert
text
default
null
,
modify
ssl_key
text
default
null
,
modify
default_file
text
default
null
;
modify
socket
text
,
modify
ssl_ca
text
,
modify
ssl_capath
text
,
modify
ssl_cert
text
,
modify
ssl_key
text
,
modify
default_file
text
;
end
if
;
end
;
//
delimiter
;
...
...
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