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
ec70bac3
Commit
ec70bac3
authored
Apr 02, 2003
by
monty@narttu.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed problem with const table named with crashed test suite on MacOSX
parent
8cbad532
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
3 deletions
+11
-3
myisam/mi_test3.c
myisam/mi_test3.c
+1
-1
myisam/rt_test.c
myisam/rt_test.c
+1
-1
sql/sql_class.cc
sql/sql_class.cc
+6
-0
sql/sql_class.h
sql/sql_class.h
+3
-1
No files found.
myisam/mi_test3.c
View file @
ec70bac3
...
...
@@ -207,7 +207,7 @@ void start_test(int id)
{
mi_status
(
file1
,
&
isam_info
,
HA_STATUS_VARIABLE
);
printf
(
"%2d: End of test. Records: %ld Deleted: %ld
\n
"
,
id
,
isam_info
.
records
,
isam_info
.
deleted
);
id
,
(
long
)
isam_info
.
records
,
(
long
)
isam_info
.
deleted
);
fflush
(
stdout
);
}
...
...
myisam/rt_test.c
View file @
ec70bac3
...
...
@@ -297,7 +297,7 @@ int run_test(const char *filename)
create_record1
(
record
,
nrecords
*
4
/
5
);
print_record
(
record
,
0
,
"
\n
"
);
hrows
=
mi_records_in_range
(
file
,
0
,
record
+
1
,
0
,
HA_READ_MBR_INTERSECT
,
record
+
1
,
0
,
0
);
printf
(
" %ld rows
\n
"
,
hrows
);
printf
(
" %ld rows
\n
"
,
(
long
)
hrows
);
if
(
mi_close
(
file
))
goto
err
;
...
...
sql/sql_class.cc
View file @
ec70bac3
...
...
@@ -36,6 +36,12 @@
#endif
#include <mysys_err.h>
/*
The following is used to initialise Table_ident with a internal
table name
*/
char
internal_table_name
[
2
]
=
"*"
;
/*****************************************************************************
** Instansiate templates
...
...
sql/sql_class.h
View file @
ec70bac3
...
...
@@ -34,6 +34,8 @@ enum enum_log_type { LOG_CLOSED, LOG_NORMAL, LOG_NEW, LOG_BIN };
enum
enum_delay_key_write
{
DELAY_KEY_WRITE_NONE
,
DELAY_KEY_WRITE_ON
,
DELAY_KEY_WRITE_ALL
};
extern
char
internal_table_name
[
2
];
// log info errors
#define LOG_INFO_EOF -1
#define LOG_INFO_IO -2
...
...
@@ -900,7 +902,7 @@ class Table_ident :public Sql_alloc
inline
Table_ident
(
SELECT_LEX_UNIT
*
s
)
:
sel
(
s
)
{
/* We must have a table name here as this is used with add_table_to_list */
db
.
str
=
0
;
table
.
str
=
(
char
*
)
"*"
;
table
.
length
=
1
;
db
.
str
=
0
;
table
.
str
=
internal_table_name
;
table
.
length
=
1
;
}
inline
void
change_db
(
char
*
db_name
)
{
...
...
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