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
ccaa349e
Commit
ccaa349e
authored
Jul 30, 2001
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/home/bk/mysql
into mysql.sashanet.com:/home/sasha/src/bk/mysql
parents
1ddb97f4
d31b49f3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
mysql-test/t/fulltext_join.test
mysql-test/t/fulltext_join.test
+38
-0
No files found.
mysql-test/t/fulltext_join.test
0 → 100644
View file @
ccaa349e
DROP
TABLE
IF
EXISTS
stories
;
CREATE
TABLE
stories
(
sid
char
(
16
)
NOT
NULL
,
tid
smallint
UNSIGNED
NOT
NULL
,
uid
mediumint
UNSIGNED
NOT
NULL
,
title
varchar
(
100
)
DEFAULT
''
NOT
NULL
,
dept
varchar
(
100
),
time
datetime
DEFAULT
'0000-00-00 00:00:00'
NOT
NULL
,
hits
mediumint
UNSIGNED
DEFAULT
'0'
NOT
NULL
,
section
varchar
(
30
)
DEFAULT
''
NOT
NULL
,
displaystatus
tinyint
DEFAULT
'0'
NOT
NULL
,
commentstatus
tinyint
,
discussion
mediumint
UNSIGNED
,
submitter
mediumint
UNSIGNED
NOT
NULL
,
flags
set
(
"delete_me"
,
"data_dirty"
)
DEFAULT
''
NOT
NULL
,
PRIMARY
KEY
(
sid
),
FOREIGN
KEY
(
uid
)
REFERENCES
users
(
uid
),
FOREIGN
KEY
(
tid
)
REFERENCES
tid
(
topic
),
FOREIGN
KEY
(
section
)
REFERENCES
sections
(
section
),
KEY
time
(
time
),
KEY
searchform
(
displaystatus
,
time
)
)
TYPE
=
myisam
;
DROP
TABLE
IF
EXISTS
story_text
;
CREATE
TABLE
story_text
(
sid
char
(
16
)
NOT
NULL
,
introtext
text
,
bodytext
text
,
relatedtext
text
,
FOREIGN
KEY
(
sid
)
REFERENCES
stories
(
sid
),
PRIMARY
KEY
(
sid
)
)
TYPE
=
myisam
;
ALTER
TABLE
stories
add
fulltext
(
title
);
ALTER
TABLE
story_text
add
fulltext
(
introtext
,
bodytext
);
SELECT
stories
.
sid
,
title
,
TRUNCATE
((
MATCH
(
title
,
introtext
,
bodytext
)
AGAINST
(
'install'
)),
1
)
as
score
FROM
stories
,
story_text
WHERE
stories
.
sid
=
story_text
.
sid
AND
MATCH
(
title
,
introtext
,
bodytext
)
AGAINST
(
'install'
);
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