monty@mysql.com
ce14578909
Merge with 4.0.18
2004-02-11 00:06:46 +01:00
dlenev@dlenev.mshome
8ec663ef5b
Fixed bug #2248 "mysql_fetch without prior mysql_execute hangs"
...
Done clean-up in prep stmt API functions:
1) Removed some checks that were performed only in debug version
were making debug version more tolerable to user errors than
production (and thus caused problems for example masking some
bugs).
2) Also removed some other checks to make prep stmt API
consistent with the rest of C API (this also in line with
general politics - make checks in only those places where
errors are very common and hard to spot).
2004-02-10 16:58:20 +03:00
bell@sanja.is.com.ua
f3877b6538
fixed cleupup() for distinct aggregate functions (BUG#2663)
2004-02-08 20:57:14 +02:00
bell@sanja.is.com.ua
69e2460bd4
fixed subquery with PS (BUG#2462)
...
fixed UNION preparation
2004-02-08 20:14:13 +02:00
konstantin@oak.local
69d00bdb88
Fix for bug #2247 : "mysql_stmt_affected_rows returns affected rows from
...
last command"
2004-02-06 16:03:09 +03:00
monty@mysql.com
d51263b6e5
Ensure that privileges are tested properly for multi-table-updates.
...
Now one need only SELECT privilege for tables that are only read in
UPDATE statements with many tables. (Bug #2377 ).
2004-02-03 19:17:23 +01:00
konstantin@oak.local
2a25b2617a
Prepared_statement deployed instead of PREP_STMT.
2003-12-20 02:16:10 +03:00
konstantin@oak.local
54f76e2c93
commented why valgrind barks at the bug #1500
2003-12-08 13:30:14 +03:00
konstantin@oak.local
9be8ea49e1
cleanup
2003-11-26 20:23:28 +03:00
konstantin@oak.local
2556abd912
cleanup
2003-11-26 20:18:55 +03:00
lenz@kallisto.local
6549791f21
- fixed compile error in tests/client_test.c
...
(declarations should be on top of a block)
2003-11-26 15:22:30 +01:00
igor@rurik.mysql.com
40ff661193
Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-4.1
...
into rurik.mysql.com:/home/igor/mysql-4.1
2003-11-25 14:09:38 -08:00
igor@rurik.mysql.com
5eb3763b2f
fork_big2.pl:
...
Added resize key cache test.
2003-11-25 13:06:46 -08:00
konstantin@oak.local
7c2d0eea45
fix for bug #1946 :
...
"You can always mysql_real_query a query with placeholders
after mysql_prepare()"
2003-11-25 17:41:12 +03:00
dlenev@dlenev.mshome
625371f306
Fix for bug #1500 "Server crash with mysql_prepare"
...
We treat Item_param whose value is not set as non-const.
This allows us to avoid use of Item_param's value (not yet existing) in
those fix_fields and fix_length_and_dec that do calculations if their
Items arguments are const. So we can call fix_fields for such items from
mysql_prepare safely.
2003-11-23 00:48:18 +03:00
monty@mashka.mysql.fi
0bd17351ca
Changed mysql_next_result() to return int instead of bool
...
Changed ~Item_func_in() to call cleanup() (to fix memory leak)
Fixed test_multi_statements() test in client_test
2003-11-19 17:31:57 +02:00
monty@mashka.mysql.fi
c9ae785bc3
Delete duplicate error message names
2003-11-18 17:28:00 +02:00
pem@mysql.comhem.se
ea075fbb65
BUG#1644: Insertion of more than 3 NULL columns with parameter binding fails
...
Fixed. Enabled test case in client_test.c.
2003-10-27 10:50:18 +01:00
pem@mysql.comhem.se
fa8da6b855
A few more fixes.
...
And added new test for BUG#1644. (Disabled for now, not fixed yet.)
2003-10-25 17:19:35 +02:00
pem@mysql.comhem.se
d72c7dac9a
A major overhaul to adopt to recent changes. It now passes all tests.
...
Note:
- All test results haven't been inspected in detail to see if they are correct.
- Some result set printing seems to have the wrong field width; most notably
date/time fields and type fields (e.g. "int(4)").
- There are still some valgrind complaints, but they seem to be in assert() or
in libmysql.
2003-10-25 15:53:41 +02:00
monty@narttu.mysql.fi
6056cfadfc
Merge with 4.0.16
2003-10-07 15:42:26 +03:00
lenz@kallisto.local
5ce5a68b4e
- Code cleanup: replaced C++-style comments with the proper syntax for
...
.c files (the IBM Visual Age C compiler aborts with a syntax error
on these)
2003-09-24 08:35:02 +02:00
monty@narttu.mysql.fi
f05a1c8394
Block SIGPIPE also for not threaded client programs.
...
Added --include and --libs_r options to mysql_config.
Added mysql_get_client_version() to client library
Fixed some minor benchmark issues
2003-09-23 13:36:01 +03:00
monty@mashka.mysql.fi
7538242e4f
merge with 4.1 tree
2003-09-11 20:31:40 +03:00
monty@mashka.mysql.fi
45aa92c574
After merge fixes.
...
Note that mix_innodb_myisam_binlog and union fails after this patch (Will be fixed shortly by maintaners of this code)
2003-09-11 19:06:23 +03:00
bell@sanja.is.com.ua
51374e569d
fixed BUG#1180 (changing WHERE clause of prepared statements by optimisation)
2003-09-02 19:56:55 +03:00
bell@sanja.is.com.ua
0f456a480e
fixed string parameter assugnment (coping instead of asigning pointer to buffer) (BUG#1115)
...
fixed test_field_misc (UTF variable value)
2003-09-02 14:37:06 +03:00
venu@myvenu.com
45dcca7351
Fix for timestamp issue (BR #819 )
2003-07-30 02:01:53 -07:00
venu@myvenu.com
bc7cf30338
Enable warnings by default for single value list inserts also when the client protocol is >= 4.1
2003-07-21 00:13:22 -07:00
venu@myvenu.com
5788c90d07
test for SQL_MODE with PIPES_AS_CONCAT, ANSI and IGNORE_SPACE
2003-06-24 10:43:57 -07:00
venu@myvenu.com
d764294f12
Fix for mysql_list_fields & reset stmt buffers from stmt_free_result
...
Windows build fix
2003-06-08 09:11:14 -07:00
venu@myvenu.com
2e27ab2708
protocol test update
...
(fix for memory ovverun bug from DBD(ranger) + changes for removal of collation from explain)
2003-06-04 00:19:09 -07:00
monty@mashka.mysql.fi
cb7061ebe4
merge
2003-05-22 02:57:27 +03:00
venu@myvenu.com
7b2ac7f83c
client_test.c:
...
Updated protocol test
2003-05-21 01:15:04 -07:00
monty@narttu.mysql.fi
dd2b7918cd
Merge with 4.0.13
2003-05-19 16:35:49 +03:00
monty@narttu.mysql.fi
e2fc4f0b71
Fix to get thread_test to compile
2003-05-15 17:50:57 +03:00
monty@narttu.mysql.fi
09c98127cb
Remove warning from automake
2003-05-15 15:51:42 +03:00
monty@mashka.mysql.fi
4bde719df7
Safety fix to enable RAID in max binaries
...
Better fix for format('nan')
Fix for HAVING COUNT(DISTINCT...)
2003-05-13 10:54:07 +03:00
monty@mashka.mysql.fi
5b7a86faec
More tests
2003-05-08 01:47:20 +03:00
monty@mashka.mysql.fi
5d5d5b08ac
Merge to get security patch
2003-05-08 00:12:46 +03:00
monty@mashka.mysql.fi
71ce598fa2
Security patch to remove wrong error when one had a global update/delete privilige and a database specific SELECT privilege.
2003-05-07 23:59:24 +03:00
monty@narttu.mysql.fi
ee8190f293
Merge
2003-05-02 15:22:04 +03:00
monty@mashka.mysql.fi
51eed4b48c
Fix for openssl on Solaris
...
Fix for grant bug with SELECT *
2003-04-28 10:32:56 +03:00
monty@narttu.mysql.fi
98240b049f
Removed some not used files
...
Remove the 'fs' file systems as this is not maintained.
Moved programs from client to tests
2003-04-22 22:41:59 +03:00
monty@narttu.mysql.fi
a434bca704
Merge with 4.0
2003-03-16 19:17:54 +02:00
monty@mashka.mysql.fi
968e9a73d4
merge with 3.23 to get:
...
- Fix for empty table/column names
2003-03-15 04:41:57 +02:00
monty@mashka.mysql.fi
5ee1dbbe58
Check for empty table/column names
2003-03-14 17:08:42 +02:00
serg@serg.mysql.com
f590fa7ce2
merged
2003-03-13 17:57:24 +01:00
monty@mashka.mysql.fi
6c81552dd3
Better fix for GRANT bug
2003-03-13 16:43:43 +02:00
venu@myvenu.com
1f88025066
Fix EXPLAIN bug with binary protocol
...
Added new client tests (EXPLAIN + DECIMAL conv)
2003-03-04 14:22:30 -08:00
venu@myvenu.com
245a6f8404
1. Fix for the crash in debug mode when the .frm is corrupted and SHOW TABLE STATUS is executed.This also fixes to return the error message to comment field in SHOW TABLE STATUS when the .frm is corrupted
...
2. Test for corrupted .frm and the SHOW TABLE STATUS
2003-02-24 17:05:03 -08:00
venu@myvenu.com
b6d08e4b45
Another misc variable test which is of bool type returning a longlong
2003-02-15 15:13:58 -08:00
venu@myvenu.com
c52d1035a3
Updated tests for MYSQL_FIELD members for misc cases
2003-02-15 15:01:04 -08:00
venu@myvenu.com
03fd42e601
Fix stupid signed and unsigned conversion - When field and buffer types are different (Client receiving end)
...
Added tests for singed and unsigned conversion (client_test.c)
2003-02-05 12:21:01 -08:00
venu@myvenu.com
4e1d69d618
Conversion fix - bug report from PHP
...
Added a new conversion bug test
Changed options with default_options read from my.ini from [client] section
More cleanups for better usage
2003-02-04 18:54:14 -08:00
venu@myvenu.com
0aaab85f70
Force to read all unread packets on stmt_close
2003-01-31 15:20:03 -08:00
venu@myvenu.com
5c1d2a5626
Few misc cases check from PHP - client_test
...
Fix the buffer_length ovveride when length ptr is NULL - libmysql
2003-01-31 13:43:38 -08:00
venu@myvenu.com
fdc48a0597
Fix for subsequent error calls in multi-query
2003-01-31 00:35:06 -08:00
venu@myvenu.com
87206f104a
Fix alloc_stmt_fields for non-select statements
...
Add tests for show commands + MYSQL_TYPE_NULL coverage
2003-01-30 14:33:49 -08:00
venu@myvenu.com
81c580af37
Merge conflict
2003-01-30 01:02:57 -08:00
venu@myvenu.com
260998632a
Tests for 'n' concurrent statement execution
2003-01-30 00:41:14 -08:00
bar@bar.mysql.r18.ru
b2c97a0f60
client_test.c:
...
Compilation failure fix
2003-01-29 11:38:59 +04:00
venu@myvenu.com
79e1fd8d0e
Fix leak when the client disconnects with open prep statements
2003-01-28 09:24:27 -08:00
venu@myvenu.com
ca62e9f6a0
Fix stmt_close not to close the resources on error(libmysql)
...
Enable test_stmt_close() and test output to stdout(client_test)
2003-01-27 10:54:45 -08:00
venu@myvenu.com
6af9b46e5f
Remove un-used variables
...
Pure coverage tests (debug only)
2003-01-25 22:52:45 -08:00
venu@myvenu.com
bea75a4211
Misc cleanups + pure coverage test + Monty's comments
2003-01-24 03:17:26 -08:00
venu@myvenu.com
28552c27a0
Add DATE,TIME and TS tests - MYSQL_TIME handling
2003-01-23 22:39:07 -08:00
venu@myvenu.com
93d4055e21
Remove bind_length + Fix the client-test
2003-01-22 01:30:13 -08:00
monty@mashka.mysql.fi
25c393a12e
Portability fixes (for windows)
...
Some changes to the prepared statement protocol to make it easier to use and faster.
2003-01-21 21:07:59 +02:00
monty@mashka.mysql.fi
d14db3961d
Merge work:/home/bk/mysql-4.1 into mashka.mysql.fi:/home/my/mysql-4.1
2003-01-19 02:28:36 +02:00
monty@mashka.mysql.fi
0d28405424
Removed compiler warnings
2003-01-19 02:24:02 +02:00
venu@myvenu.com
9305ee0d54
Merge myvenu.com:/home/venu/bk/src-4.1
...
into myvenu.com:/home/venu/work/sql/dev-4.1
2003-01-18 12:59:33 -08:00
venu@myvenu.com
04f20910e3
Few more tests + store_result fix
2003-01-18 12:58:19 -08:00
monty@mashka.mysql.fi
88cd4126e4
Simple code cleanups, ignore generated files
2003-01-18 19:31:38 +02:00
monty@mashka.mysql.fi
8acc22296c
Change client_flag to unsigned long (16 -> 32 bits) to handle more options.
...
Don't use new password format if mysql.user has old format
tables_priv was not reset on FLUSH PRIVILEGES if tables_priv was empty
Portability fixes for Windows
2003-01-18 16:39:21 +02:00
venu@myvenu.com
492eba0369
Added prepared statements sample from manual as a test
2003-01-09 18:32:08 -08:00
venu@myvenu.com
bcacfe28a3
Protocol conversion tests
2003-01-07 18:53:46 -08:00
monty@mashka.mysql.fi
803dff1002
Merge with 4.0.8
2003-01-06 02:04:52 +02:00
monty@mashka.mysql.fi
6d5ad61a11
Added support for max_allowed_packet in option files read by mysql_option()
...
Extended max_allowed_packet for clients to 1G
Fixed bug in sending compressed rows >= 16M
Fix bug in skiping too long packets from clients.
Added checking of wrong command number sent by client.
2003-01-04 15:17:16 +02:00
venu@myvenu.com
df2678db29
Prepared statements + binary protocol test update
2003-01-03 23:38:47 -08:00
monty@mashka.mysql.fi
d3eb993a27
rename of net_pkg.cc to protocol.cc
...
Class for sending data from server to client (Protocol)
This handles both the old ( <= 4.0 ) protocol and then new binary protocol that is used for prepared statements.
2002-12-11 09:17:51 +02:00
serg@serg.mysql.com
b385eb4a05
removed redundant -I include-dirs
2002-11-26 14:01:08 +01:00
venu@myvenu.com
500e56e0d6
client_test.c:
...
Modification to new API test
sql_prepare.cc:
Fix for lock_types
2002-11-22 18:30:55 -08:00
monty@mashka.mysql.fi
dac6498f9b
Merge with 4.0
2002-11-21 15:56:48 +02:00
monty@mashka.mysql.fi
97bb57f765
Extended WEEK() to be able to handle ISO weeks.
...
unlink socket file if mysqld dies on startup
Some optimization of AND expressions
2002-11-12 12:42:42 +02:00
monty@mashka.mysql.fi
bae4af8a4f
Fixed missing table_list->name -> table_list->alias convert
2002-10-08 17:58:43 +03:00
monty@mashka.mysql.fi
0f39457613
Merge with 4.0.4
2002-10-02 17:55:12 +03:00
monty@mashka.mysql.fi
d69250a969
Fixes and code cleanups after merge with 4.0.3
...
Warning handling and initial prepared statement handling (last not complete yet)
Changed a lot of functions that returned 0/1 to my_bool type.
GRANT handling now uses read/write locks instead of mutex
Change basic net functions to use THD instead of NET
(needed for 4.1 protocol)
Use my_sprintf instead of sprintf() + strlen()
Added alloc_query() to be able to chare query initialization code with
prepared statements.
Cleanup handling of SHOW COUNT(*) WARNINGS and SELECT LAST_INSERT_ID()
Note that the following test fails (will be fixed ASAP):
sub_select, union, rpl_rotate_logs and rpl_mystery22
2002-10-02 13:33:08 +03:00
monty@mashka.mysql.fi
9c123d0c0b
Don't give the anonymous user create temp table or lock tables privileges.
...
SET PASSWORD=... closed connection on error.
2002-09-22 18:02:39 +03:00
monty@mashka.mysql.fi
378d977d28
Merge with 3.23.53
2002-09-22 10:59:33 +03:00
monty@mashka.mysql.fi
755d4952af
Change name -> alias in TABLE_LIST.
...
Added missing mutex-lock around critical section in GRANT handling.
2002-09-21 21:36:23 +03:00
monty@narttu.mysql.fi
7134ffec21
Merge with 4.0.3
...
Some simple optimzations, more comments and indentation changes.
Add ` around database in 'use database' in binary log.
Moved max_error_count and max_warning_count to variables struct.
Removed SHOW_WARNS_COUNT and SHOW_ERRORS_COUNT calls.
Changed string functions to use character set of first string argument as default return characterset
(Each string function can change the above assumption if needed)
2002-08-30 12:40:40 +03:00
peter@mysql.com
684bf18e4d
Arjens LOG functions changes with small changes and tests added to mysql-test
2002-07-17 12:11:48 +04:00
venu@myvenu.com
8470c364a0
client_test.c:
...
Forgot to include the portable changes from previous commit
2002-06-13 17:36:15 -07:00
venu@myvenu.com
143fb1fc74
client_test.c:
...
new file
'C' Test case for all prototype changes - Assert based which covers all most all scenarios
2002-06-13 17:28:25 -07:00
monty@mashka.mysql.fi
b8421d34ec
Added the following new privleges:
...
SHOW DATABASES
CREATE TEMPORARY TABLE
LOCK TABLES
REPLICATION SLAVE & REPLICATION CLIENT
SUPER
EXECUTE
All scripts & documentation is updated for this change.
Added better error messages for global privileges
2002-06-12 15:04:18 +03:00
monty@mashka.mysql.fi
2aecdd1a91
Big code cleanup/review before 4.0.2 release.
...
(All commit emails since 4.0.1 checked)
This had to be done now, before the 4.1 tree changes to much, to make it easy to propagate bug fixes to the 4.1 tree.
2002-06-11 11:20:31 +03:00
monty@hundin.mysql.fi
1815e2dee0
Fixed privilege check problem with SELECT ... INTO OUTFILE
2002-06-09 09:14:25 +03:00
monty@hundin.mysql.fi
b0aa96dd81
Fixed mutex problem in TRUNCATE TABLE
2002-06-04 22:59:12 +03:00
jani@hynda.mysql.fi
3682df45e1
New version of mail_to_db.pl
2001-12-27 16:23:46 +02:00
jani@hynda.mysql.fi
f17e1946d0
Made new version of mail_to_db.pl
2001-12-27 15:37:45 +02:00
jani@hynda.mysql.fi
b1291364cb
Fixed a bug in mail_to_db.pl
2001-12-19 22:40:17 +02:00
monty@hundin.mysql.fi
9ca9fc2283
Fix for MyISAM records > 16M
2001-12-11 20:45:48 +02:00
monty@hundin.mysql.fi
7c3f8447c0
Extended manual section about MySQL states
2001-11-28 22:47:58 +02:00
monty@hundin.mysql.fi
0bfec316ce
Don't do signal() on windows (Causes instability problems)
...
Safer, a bit faster filesort.
Code changes to avoid calls to current_thd() (faster code).
Removed all compiler warnings from readline.
2001-10-17 19:39:39 +03:00
monty@hundin.mysql.fi
aecef7614e
Removed wrong warning from thr_lock
...
Fixed problem with UPDATE and BDB tables
Fixed problem with GRANT FILE privilege on database level
mysqld --warnings works now
Fixed problem with SHOW OPEN TABLES when not using BDB
Added some tests for ALTER TABLE to the test scripts
2001-07-17 21:04:01 +03:00
monty@hundin.mysql.fi
4014d2367c
Added ABS() to make tests more portable.
...
New postgresql crash-me file.
Increased blob size in benchmarks from 65K to 1M.
2001-06-03 12:26:24 +03:00
monty@donna.mysql.fi
b897f84d74
Changes to get mysqld-max to compile
2001-04-13 16:21:38 +03:00
monty@donna.mysql.fi
8700c02dae
Changed Innobase to Innodb
...
Deleted a lot of old benchmark runs
2001-04-13 12:25:12 +03:00
jani@janikt.pp.saunalahti.fi
ae5ee2d2d5
Small fix to mail_to_db.pl
2001-04-06 06:09:08 +03:00
jani@janikt.pp.saunalahti.fi
655688d829
Added --stdin option to mail_to_db.pl
2001-04-06 05:26:36 +03:00
monty@donna.mysql.fi
4c20a8e59e
Removed deleted tests
2001-04-02 20:18:36 +03:00
monty@donna.mysql.fi
9ea338ac3f
Added INNODB as a synonym for INNOBASE
...
Fixed bug where FLUSH TABLES could make indexes unavailable for the next query
Added --skip-safemalloc
2001-04-02 01:45:24 +03:00
monty@donna.mysql.fi
65822120f5
Fixed bug in ALTER TABLE
...
Removed _mi_rkey() function
New fork_big.pl multi-thread test
2001-04-01 13:45:48 +03:00
monty@donna.mysql.fi
5487d7a8c0
Fixed bug in send in mysqltest
...
Removed usage of @r/result as this made life hard when testing different
table handlers.
Allow concurrent inserts if no update/binary log.
Don't remove key_cache at flush tables.
Fixed bug in SELECT DISTINCT SUM()...
2001-03-25 01:02:26 +02:00
monty@donna.mysql.fi
267c8760cb
Fixed wrong option in mysql_install_db
...
Added delayed_user for delayed_threads
Don't use record cache when doing deletes
2001-03-09 03:38:18 +02:00
monty@donna.mysql.com
9c80d5cb70
Patches for NetBSD/macppc
...
Fixed bug in LEFT JOIN
Added bdb_log_buffer_size
2001-01-12 13:52:32 +02:00
jani@prima.mysql.fi
8594820fd6
New version of mail_to_db.pl
2000-12-16 05:56:46 +02:00
sasha@mysql.sashanet.com
f7649635a1
sql/slave.cc
...
fixed typo in the error message
sql/sql_base.cc
fixed bugs in reopen_name_locked_table() after talking to Monty
added a test case for restore + select
2000-09-19 17:23:58 -06:00
monty@donna.mysql.com
306640e274
Updates for release
2000-08-29 19:38:32 +03:00
monty@donna.mysql.com
066d55c0c0
Bug fixes for 3.23.23
2000-08-29 12:31:01 +03:00
monty@donna.mysql.com
a753a3a2ce
Updated benchmark and results for PostgreSQL 7.0.2
...
Added more status to the MyISAM files to avoid checking files that
has already been checked.
2000-08-18 12:48:00 +03:00
bk@work.mysql.com
f4c589ff6c
Import changeset
2000-07-31 21:29:14 +02:00