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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
7d551b8a
Commit
7d551b8a
authored
Jan 05, 2006
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/jimw/my/mysql-5.0-15185
into mysql.com:/home/jimw/my/mysql-5.0-clean
parents
ed7c09da
5bb966a9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
10 deletions
+25
-10
sql/handler.cc
sql/handler.cc
+25
-10
No files found.
sql/handler.cc
View file @
7d551b8a
...
@@ -300,39 +300,56 @@ handler *get_new_handler(TABLE *table, MEM_ROOT *alloc, enum db_type db_type)
...
@@ -300,39 +300,56 @@ handler *get_new_handler(TABLE *table, MEM_ROOT *alloc, enum db_type db_type)
case
DB_TYPE_HASH
:
case
DB_TYPE_HASH
:
return
new
(
alloc
)
ha_hash
(
table
);
return
new
(
alloc
)
ha_hash
(
table
);
#endif
#endif
case
DB_TYPE_MRG_MYISAM
:
case
DB_TYPE_MRG_ISAM
:
case
DB_TYPE_MRG_ISAM
:
return
new
(
alloc
)
ha_myisammrg
(
table
);
return
new
(
alloc
)
ha_myisammrg
(
table
);
#ifdef HAVE_BERKELEY_DB
#ifdef HAVE_BERKELEY_DB
case
DB_TYPE_BERKELEY_DB
:
case
DB_TYPE_BERKELEY_DB
:
if
(
have_berkeley_db
==
SHOW_OPTION_YES
)
return
new
(
alloc
)
ha_berkeley
(
table
);
return
new
(
alloc
)
ha_berkeley
(
table
);
return
NULL
;
#endif
#endif
#ifdef HAVE_INNOBASE_DB
#ifdef HAVE_INNOBASE_DB
case
DB_TYPE_INNODB
:
case
DB_TYPE_INNODB
:
if
(
have_innodb
==
SHOW_OPTION_YES
)
return
new
(
alloc
)
ha_innobase
(
table
);
return
new
(
alloc
)
ha_innobase
(
table
);
return
NULL
;
#endif
#endif
#ifdef HAVE_EXAMPLE_DB
#ifdef HAVE_EXAMPLE_DB
case
DB_TYPE_EXAMPLE_DB
:
case
DB_TYPE_EXAMPLE_DB
:
if
(
have_example_db
==
SHOW_OPTION_YES
)
return
new
(
alloc
)
ha_example
(
table
);
return
new
(
alloc
)
ha_example
(
table
);
return
NULL
;
#endif
#endif
#if defined(HAVE_ARCHIVE_DB)
#if defined(HAVE_ARCHIVE_DB)
case
DB_TYPE_ARCHIVE_DB
:
case
DB_TYPE_ARCHIVE_DB
:
if
(
have_archive_db
==
SHOW_OPTION_YES
)
return
new
(
alloc
)
ha_archive
(
table
);
return
new
(
alloc
)
ha_archive
(
table
);
return
NULL
;
#endif
#endif
#ifdef HAVE_BLACKHOLE_DB
#ifdef HAVE_BLACKHOLE_DB
case
DB_TYPE_BLACKHOLE_DB
:
case
DB_TYPE_BLACKHOLE_DB
:
if
(
have_blackhole_db
==
SHOW_OPTION_YES
)
return
new
(
alloc
)
ha_blackhole
(
table
);
return
new
(
alloc
)
ha_blackhole
(
table
);
return
NULL
;
#endif
#endif
#ifdef HAVE_FEDERATED_DB
#ifdef HAVE_FEDERATED_DB
case
DB_TYPE_FEDERATED_DB
:
case
DB_TYPE_FEDERATED_DB
:
if
(
have_federated_db
==
SHOW_OPTION_YES
)
return
new
(
alloc
)
ha_federated
(
table
);
return
new
(
alloc
)
ha_federated
(
table
);
return
NULL
;
#endif
#endif
#ifdef HAVE_CSV_DB
#ifdef HAVE_CSV_DB
case
DB_TYPE_CSV_DB
:
case
DB_TYPE_CSV_DB
:
if
(
have_csv_db
==
SHOW_OPTION_YES
)
return
new
(
alloc
)
ha_tina
(
table
);
return
new
(
alloc
)
ha_tina
(
table
);
return
NULL
;
#endif
#endif
#ifdef HAVE_NDBCLUSTER_DB
#ifdef HAVE_NDBCLUSTER_DB
case
DB_TYPE_NDBCLUSTER
:
case
DB_TYPE_NDBCLUSTER
:
if
(
have_ndbcluster
==
SHOW_OPTION_YES
)
return
new
(
alloc
)
ha_ndbcluster
(
table
);
return
new
(
alloc
)
ha_ndbcluster
(
table
);
return
NULL
;
#endif
#endif
case
DB_TYPE_HEAP
:
case
DB_TYPE_HEAP
:
return
new
(
alloc
)
ha_heap
(
table
);
return
new
(
alloc
)
ha_heap
(
table
);
...
@@ -346,8 +363,6 @@ handler *get_new_handler(TABLE *table, MEM_ROOT *alloc, enum db_type db_type)
...
@@ -346,8 +363,6 @@ handler *get_new_handler(TABLE *table, MEM_ROOT *alloc, enum db_type db_type)
/* Fall back to MyISAM */
/* Fall back to MyISAM */
case
DB_TYPE_MYISAM
:
case
DB_TYPE_MYISAM
:
return
new
(
alloc
)
ha_myisam
(
table
);
return
new
(
alloc
)
ha_myisam
(
table
);
case
DB_TYPE_MRG_MYISAM
:
return
new
(
alloc
)
ha_myisammrg
(
table
);
}
}
}
}
...
...
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