Commit graph

177 commits

Author SHA1 Message Date
osku
160cd2b29e Make 'thread_id' parameter in os_thread_create() optional. 2006-04-21 12:06:23 +00:00
marko
589f96fb42 Merge r487 from branches/5.0:
dict_load_indexes(): pass comp=0 to rec_get_deleted_flag(),
because SYS_INDEXES always is in ROW_FORMAT=REDUNDANT.  (Bug #19217)
2006-04-21 08:00:26 +00:00
osku
99585c9bae Remove srv_sys->operational since it is unused. 2006-04-21 07:04:02 +00:00
osku
5f00145409 Remove obsolete and unused global variables from srv0srv.c. 2006-04-20 11:06:41 +00:00
osku
573617ce05 dict_remove_db_name: Remove useless 'if'. 2006-04-18 07:16:14 +00:00
osku
36a5c882d5 export.sh:
Automate snapshot creation process.

 Update "files internal to innobase" list.
2006-04-18 06:48:47 +00:00
osku
9845358e36 Remove temporary work-arounds from innodb.result now that ALTER TABLE DROP
FOREIGN KEY works once again.
2006-04-18 06:33:03 +00:00
osku
20694fdb8f Use bound literals in row_rename_table_for_mysql. 2006-04-17 08:14:04 +00:00
osku
05963b4917 Add mem_heap_strcat(). 2006-04-17 08:13:07 +00:00
osku
5fa4d38e0f pars_info_add_*(): In debug builds (UNIV_DEBUG), check that the given name
is not already used.
2006-04-15 14:58:17 +00:00
osku
49b0a37b32 Use que_eval_sql() in dict_create_or_check_foreign_constraint_tables. 2006-04-13 11:02:52 +00:00
osku
177a588be9 Use bound literals in row_discard_tablespace_for_mysql. 2006-04-13 06:22:52 +00:00
osku
9f461c9082 Use bound literals in row_drop_table_for_mysql. 2006-04-12 18:17:47 +00:00
osku
bb73e5897e Use bound literals in row_truncate_table_for_mysql. 2006-04-12 18:14:06 +00:00
marko
9bfa19a583 dict_table_copy_types(): Remove a bogus debug assertion.
DICT_UNIVERSAL can be set for index->type, not for table->type.
2006-04-12 12:37:48 +00:00
marko
d8b5a3aff5 dict_table_t: Remove the field "type".
dict_load_table(): Refuse to load tables with other TYPE than
DICT_TABLE_ORDINARY.
2006-04-12 12:18:54 +00:00
jan
7631ed9cde Add general function to evaluate a sql query. Add function to evaluate
dulints in host variables.
2006-04-12 10:40:22 +00:00
osku
b6e02dd207 Fix bug #18934, "InnoDB crashes when table uses column names like
DB_ROW_ID", by refusing tables that use reserved column names.

Add dict_mem_table_free(), use it instead of duplicating the code everywhere.

Use already existing dict_mem_index_free().

Fix memory leaks in row_create_table_for_mysql() in rare corner cases.
2006-04-11 14:01:17 +00:00
osku
6384ac2043 Print dictionary memory size in SHOW INNODB STATUS. 2006-04-11 13:56:12 +00:00
marko
675575f81e sync_array_detect_deadlock(): Remove bogus debug assertion. 2006-04-11 12:53:18 +00:00
marko
738611672f Remove code related to clustered tables. They were never implemented, and
the implementation would be challenging with ROW_FORMAT=COMPACT.

Remove the table types DICT_TABLE_CLUSTER_MEMBER and DICT_TABLE_CLUSTER and
all related tests and functions.

dict_table_t: Remove mix_id, mix_len, mix_id_len, mix_id_buf, and
cluster_name.

plan_t: Remove mixed_index.

dict_create_sys_tables_tuple(): Set MIX_ID=0, MIX_LEN=0 and CLUSTER_NAME=NULL
when inserting into SYS_TABLES.

dict_tree_check_search_tuple(): Enclose in #ifdef UNIV_DEBUG.
2006-04-11 12:51:34 +00:00
osku
e19af6d512 row_mysql_is_system_table(): Use strncmp, not memcmp, since we don't know
how long the input string is.
2006-04-11 06:53:19 +00:00
osku
3c8c28dfc2 Remove too strict assertions from some dict_table_t accessor functions. 2006-04-10 14:54:05 +00:00
osku
690ac61570 Allow access to system columns like DB_ROW_ID in InnoDB's SQL parser. 2006-04-10 12:05:03 +00:00
osku
ef56c53e9a Add row_fetch_store_uint4(). 2006-04-07 07:15:03 +00:00
osku
68bb0484af Add ib_uint32_t typedef. 2006-04-07 07:12:42 +00:00
osku
c9049c8280 From MySQL:
Add Windows makefile 'cmakelists.txt' (Note that I had to add ut0vec.c to
it.)

Modify univ.i to not include ib_config.h on Windows.
2006-04-07 05:27:02 +00:00
osku
bd8baf66e7 univ.i: Remove unused 'utfloat' typedef. 2006-04-06 15:13:17 +00:00
osku
024530e8c1 Rename ib_vector typedef to ib_vector_t. 2006-04-06 10:02:44 +00:00
osku
ed93b381e5 Since the function definitions in pars_info_t are accessed after pars_sql()
returns in the query graph execution stage, we can't free pars_info_t in
pars_sql(). Instead, make pars_sql() transfer ownership of pars_info_t to
the created query graph, and make que_graph_free() free it if needed.
2006-04-06 07:52:14 +00:00
osku
0bc37030aa dict0crea.c: Use bound literals in all SQL statements instead of elaborately
constructing correctly allocated and quoted strings to pass the data in in
ASCII form.
2006-04-06 05:22:33 +00:00
osku
6461de977a Rewrite pars_info datatypes and APIs, add a few helper functions. 2006-04-06 05:20:59 +00:00
osku
fb452643be Add ib_vector datatype. 2006-04-06 05:20:06 +00:00
jan
3d11e33562 Make innodb_unsafe_binlog test case faster. Group all consistent read
test cases to a one test case and wait their lock timeout after all 
have been send to the server. Remove unnecessary option
--loose_innodb_lock_wait_timeout.
2006-04-05 10:11:00 +00:00
osku
fa83a455ed Decrease amount of rows inserted in a certain test in innodb.test. This has
no effect on the effectiveness of the test and reduces the running time by
~10 seconds on my machine.
2006-04-05 09:47:17 +00:00
jan
2fe4761b3f Make innodb test case faster. Group all consistent read test cases to
a one test case and wait their lock timeout after all have been send
to the server.
2006-04-05 09:37:01 +00:00
osku
f3bd718c5c Allow bound literals of type non-INTEGER to be of length 0. 2006-04-04 05:05:19 +00:00
marko
adbda85e8d sym_tab_add_bound_lit(): Remove warning about possibly uninitialized 'len'. 2006-04-03 11:29:59 +00:00
marko
09ba6e648b Disable the statistics variables btr_search_n_hash_fail and
n_hash_succ, n_hash_fail, n_patt_succ, and n_searches of btr_search_t
in builds without #ifdef UNIV_SEARCH_PERF_STAT.
2006-04-03 11:28:43 +00:00
osku
25ec27f3e7 Support DATA_VARCHAR for bound literals.
pars_bound_lit_t: Change 'address' from 'void*' to 'const void*'.
2006-04-01 09:41:58 +00:00
osku
727354aeea Add support for bound literals in the SQL parser. 2006-04-01 06:06:59 +00:00
osku
d643d731ba dtype_print():
Recognize DATA_FIXBINARY and DATA_BLOB types.

 Print known flags from prtype.

 Use a switch statement, not an else-if chain.
2006-03-31 11:28:59 +00:00
osku
f6fcc90859 Add revert_gen.sh. 2006-03-31 07:43:13 +00:00
osku
a19d860bd6 pars_set_dfield_type():
Remove never-reached duplicate code.

 Replace "if (!cond) ut_error" with "ut_a(cond)".
2006-03-31 05:50:42 +00:00
osku
90969c9402 Add comment clarifying the difference between 'alias' and 'indirection'
fields in sym_node_t.
2006-03-31 04:58:45 +00:00
osku
8289f64a58 Move calling of thr_local_free() from trx_free_for_mysql() to
innobase_close_connection().
2006-03-31 04:58:02 +00:00
jan
fd93a09ed0 Port r388 from trunk: Remove assertion ut_error which crashes the mysqld
server if it prints a warning about the adaptive latch.
2006-03-29 11:23:10 +00:00
osku
a0553ca9ae Support user-function callbacks for processing results of FETCH statements
in InnoDB's SQL parser.
2006-03-29 11:20:29 +00:00
osku
c56a927e68 Support quoted identifiers in InnoDB's SQL parser. Original patch by marko,
testing and a few fixes by me.
2006-03-29 11:18:20 +00:00
jan
1d479c1dc0 Print approximate number or record locks (bits set in the bitmap) for
this transaction to innodb_lock_monitor and show innodb status. Since 
delete-marked records maybe removed, the record count will not be precise.
2006-03-29 07:18:44 +00:00