Commit graph

206 commits

Author SHA1 Message Date
osku
b49a77578e 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
cd6d32fad1 Remove too strict assertions from some dict_table_t accessor functions. 2006-04-10 14:54:05 +00:00
osku
36a2d68a25 Allow access to system columns like DB_ROW_ID in InnoDB's SQL parser. 2006-04-10 12:05:03 +00:00
osku
b4f9e1e90c Add row_fetch_store_uint4(). 2006-04-07 07:15:03 +00:00
osku
46010b1f50 Add ib_uint32_t typedef. 2006-04-07 07:12:42 +00:00
osku
d8671ebb7c 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
1953a7ba68 univ.i: Remove unused 'utfloat' typedef. 2006-04-06 15:13:17 +00:00
osku
c37316d9a8 Rename ib_vector typedef to ib_vector_t. 2006-04-06 10:02:44 +00:00
osku
be5145c94b 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
bef4a6cc18 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
36d98ce832 Rewrite pars_info datatypes and APIs, add a few helper functions. 2006-04-06 05:20:59 +00:00
osku
1690e0deed Add ib_vector datatype. 2006-04-06 05:20:06 +00:00
jan
a98fac7a97 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
e876f907bd 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
71ff4bee42 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
8cb21aba5b Allow bound literals of type non-INTEGER to be of length 0. 2006-04-04 05:05:19 +00:00
marko
a770d8ced2 sym_tab_add_bound_lit(): Remove warning about possibly uninitialized 'len'. 2006-04-03 11:29:59 +00:00
marko
70a2e99e67 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
6cd0ecddd4 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
25de125c4a Add support for bound literals in the SQL parser. 2006-04-01 06:06:59 +00:00
osku
c520e39b74 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
56e3e9cfb2 Add revert_gen.sh. 2006-03-31 07:43:13 +00:00
osku
82359ea614 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
d595b8267f Add comment clarifying the difference between 'alias' and 'indirection'
fields in sym_node_t.
2006-03-31 04:58:45 +00:00
osku
6c3a3d2dc4 Move calling of thr_local_free() from trx_free_for_mysql() to
innobase_close_connection().
2006-03-31 04:58:02 +00:00
jan
68f8607c06 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
148369f5b1 Support user-function callbacks for processing results of FETCH statements
in InnoDB's SQL parser.
2006-03-29 11:20:29 +00:00
osku
cf058e6542 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
68908aba17 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
osku
7e30796a6e sym_tab_add_id(): Fix bug where we generated a string one character too
long.
2006-03-28 09:35:33 +00:00
osku
6e0f129f0b Add make_flex.sh and update lexer/parser generation documentation. 2006-03-28 09:32:48 +00:00
osku
b8f6fa77f1 Port r371 and r372 from branches/fts:
Add support for the EXIT keyword in InnoDB's SQL parser.

Add short introduction to query graphs.
2006-03-28 06:41:31 +00:00
jan
563d9a0618 Port r375 from branches/5.0: Fix bug additional error InnoDB:
Error: unlock row could not find a 0 mode lock on the record.
2006-03-28 06:34:12 +00:00
jan
cf06d8d965 Setting a isolation level of the transaction to read committed
weakens the locks for this session similarly like the option
innodb_locks_unsafe_for_binlog. This patch removes almost all
gap locking (used in next-key locking) and makes MySQL to release
the row locks on the rows which does not belong to result set.
Additionally, nonlocking selects on INSERT INTO SELECT,
UPDATE ... (SELECT ...), and CREATE ... SELECT ... use a
nonlocking consistent read. If a binlog is used, then binlog
format should be set to row based binloging to make the execution
of the complex SQL statements.
2006-03-27 05:33:30 +00:00
osku
edf8c85edc fetch_step(): Print a more useful error message when the cursor is closed. 2006-03-22 13:23:07 +00:00
heikki
2e46256937 Remove yet another typo from my last commit. 2006-03-22 12:28:19 +00:00
heikki
66240ae3a4 Fix yet another typo in my previous commit. 2006-03-22 09:47:01 +00:00
heikki
92b206b9ec Fix a typo in my previous commit. 2006-03-21 16:08:43 +00:00
heikki
afc3c21a9e Fix MySQL-5.1 bug http://bugs.mysql.com/bug.php?id=17992 and its
duplicate http://bugs.mysql.com/bug.php?id=17134 : MySQL's partitioned 
table code does not set prebuilt->sql_stat_start right if it does an 
insert in the same statement after doing a search first in the same 
partition table. We now write trx id always to the buffer, not just when 
flag sql_stat_start is on. This will waste CPU time very slightly.
2006-03-21 15:57:55 +00:00
jan
62dcf3fba2 Merge r357 from branches/5.0: Fix bug Use consistent read in
CREATE ... SELECT... if innodb_locks_unsafe_for_binlog is used. 
This patch is from Heikki.
2006-03-21 10:00:30 +00:00
marko
b00019ef43 Merge r355 from branches/5.0: Remove a memory leak when trying to insert
a duplicate record to a clustered index comprising
more than about 90 columns.  (Bug )

row_ins_duplicate_error_in_clust(): Call mem_heap_free(heap) at func_exit
if needed.
2006-03-21 09:15:28 +00:00
osku
ee99d219a8 Add support for UNSIGNED types in InnoDB's SQL parser.
Remove trailing whitespace from flex/bison input files.
2006-03-17 12:44:34 +00:00
osku
c126762bea Add "-Werror-implicit-function-declaration" to CFLAGS when using gcc. 2006-03-17 11:36:16 +00:00
marko
caf6ee67eb Merge r328:340 from branches/5.0:
r340: Fix http://bugs.mysql.com/bug.php?id=18283 in ha_innodb.cc and
http://bugs.mysql.com/bug.php?id=18238 in InnoDB

r339: Remove disk space leak on update of BLOB columns (Bug ).

btr_cur_pessimistic_update(): Invoke rec_get_offsets() after
rec_set_field_extern_bits().

btr_store_big_rec_extern_fields(): Note that offsets will no longer be
valid after calling this function.

r338: Fix bug 18238 : check in pessimistic insert and update if the buffer
pool is exhausted by locks
2006-03-17 08:20:14 +00:00
osku
08debc00d8 Add (void*) casts when using the %p printf format specifier.
When using GCC, use __inline__ instead of inline.

Add disabled-by-default logic to configure.in to switch GCC to a strict
C89-mode.
2006-03-16 07:47:55 +00:00
marko
33961d88d6 Merge r328 from branches/5.0:
Remove UNIV_RELEASE_NOT_YET_STABLE and related checks.

page_rec_is_comp(): Remove the bounds check.

row_sel_field_store_in_mysql_format(): Turn the assertions on mbminlen,
mbmaxlen and templ->type into debug assertions.
2006-03-15 11:02:14 +00:00
osku
632799a8a1 Fix compilation problem with non-C99 compilers in btr0sea.c. 2006-03-14 07:58:35 +00:00
jan
8e7ffddcff Forward port r315 from branches/5.0:
Fix a bug  InnoDB uses full explicit table locks in
stored FUNCTION.
2006-03-13 09:51:38 +00:00
marko
7c145068d1 Do not use inlined functions in ha_innodb.cc.
Add dict_table_is_comp_noninline().  Replace calls to dict_table_is_comp()
in ha_innodb.cc with dict_table_is_comp_noninline().
2006-03-13 09:27:34 +00:00
marko
77ea4442ca Replace buf_block_align(btr_cur_get_page()) with
buf_block_align(btr_cur_get_rec()).
2006-03-10 14:41:44 +00:00