monty@mysql.com
0de4777187
Merge with 4.1
2004-12-06 11:38:56 +02:00
monty@mysql.com
67ce247965
Add support for up to VARCHAR (size up to 65535)
...
Renamed HA_VAR_LENGTH to HA_VAR_LENGTH_PART
Renamed in all files FIELD_TYPE_STRING and FIELD_TYPE_VAR_STRING to MYSQL_TYPE_STRING and MYSQL_TYPE_VAR_STRING to make it easy to catch all possible errors
Added support for VARCHAR KEYS to heap
Removed support for ISAM
Now only long VARCHAR columns are changed to TEXT on demand (not CHAR)
Internal temporary files can now use fixed length tables if the used VARCHAR columns are short
2004-12-06 02:00:37 +02:00
hf@deer.(none)
71bfbbdcd0
Fixes to make mysql-test-run --embedded-server working
2004-12-02 16:08:17 +04:00
ram@gw.mysql.r18.ru
c78eefbc95
Fixes (bug #6932 : 'revoke all privileges...' doesn't remove all proper columns from columns_priv
...
bug #6933 : error in the tests/grant.pl test).
2004-12-02 13:34:30 +04:00
gluh@gluh.mysql.r18.ru
3256fd704e
Fixed bug related to lower case table names on Power Mac
...
'information_schema' test is splitted because of innodb
2004-11-24 19:32:10 +03:00
gluh@gluh.mysql.r18.ru
22e76af9df
More test cases are added
...
Fixed bug 'using of alias with information schema tables in views'
removed compiler warnings
2004-11-23 17:41:39 +03:00
serg@serg.mylan
2d3dd65cc1
merged
2004-11-20 18:36:41 +01:00
gluh@gluh.mysql.r18.ru
15ada105ac
changed field names, fields order according to WL description
...
fixed bug: "create view v7 as select * from information_schema.tables;" failed
2004-11-20 01:17:18 +03:00
dlenev@mysql.com
cb7e272e46
Manual merge of fix for bug #6266 "Invalid DATETIME value is not handled
...
properly" with main tree.
2004-11-19 18:35:36 +03:00
konstantin@mysql.com
fec630622b
Some comments regarding Bug#6275 ""client_test" fail in 4.1.7 make test"
2004-11-18 23:35:45 +03:00
gluh@gluh.mysql.r18.ru
a68a9fe268
remove unused parts of code
...
fix for 'show create schema_table'
fix for usage schema tables in subselect
'wrong schema table charset' fix
2004-11-18 12:16:06 +03:00
dlenev@brandersnatch.localdomain
b02f5aa692
Fix for bug #6266 "Invalid DATETIME value is not handled properly".
...
In server we assume that datetime values stored in MYSQL_TIME struct
are normalized (and year is not greater than 9999), so we should
perform range checks in all places then we convert something to
MYSQL_TIME.
2004-11-15 15:44:29 +03:00
gluh@gluh.mysql.r18.ru
321f803784
WL#1629: SHOW with WHERE(partially) &
...
WL#173: Create Data Dictionary Tables for SHOW Commands
2004-11-13 13:56:39 +03:00
monty@mysql.com
63da075081
Merge with 4.1 to get latest fix to client_test.c
2004-11-12 21:27:52 +02:00
monty@mysql.com
addd1a0da8
Merge with 4.1
2004-11-12 19:58:24 +02:00
jani@ua141d10.elisa.omakaista.fi
dc6452a4d4
Code cleanup and some optimizations.
2004-11-12 19:54:25 +02:00
jani@ua141d10.elisa.omakaista.fi
340ba1cf56
Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-4.1
...
into ua141d10.elisa.omakaista.fi:/home/my/bk/mysql-4.1
2004-11-12 18:31:11 +02:00
jani@ua141d10.elisa.omakaista.fi
379b46128f
Added possibility to run only certain tests by giving the test name(s)
...
as argument(s) after options.
Added option -T to display all current test names.
2004-11-12 18:30:30 +02:00
monty@mysql.com
20eb74dcda
Write fatal errors even if silent is used in client_test
2004-11-11 14:59:13 +02:00
konstantin@mysql.com
52da4cd912
Fix compile failure of client_test: Move DBUG_ENTER to work in standard C.
2004-11-10 16:49:44 +03:00
monty@mysql.com
1087186657
Merge with 4.1 to get new thd->mem_root handling
2004-11-08 17:53:32 +02:00
monty@mysql.com
4fbf62e6c2
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
...
into mysql.com:/home/my/mysql-4.1
2004-11-08 01:15:26 +02:00
monty@mysql.com
b903a129e2
Simpler arena swapping code
...
Now thd->mem_root is a pointer to thd->main_mem_root and THR_MALLOC is a pointer to thd->mem_root.
This gives us the following benefits:
- Allow us to easily detect if arena has already been swapped before (this fixes a bug in setup_conds() where arena was swaped twice in some cases)
- Faster swaps of arenas (as we don't have to copy the whole MEM_ROOT)
- We don't anymore have to call my_pthread_setspecific_ptr(THR_MALLOC,...) to change where memory is alloced. Now it's enough to set thd->mem_root
2004-11-08 01:13:54 +02:00
konstantin@mysql.com
eeeb342b3c
A fix and test case for the bug reported by Reggie: if character set
...
of client equals to character set of connection, possibly required
conversion to character set of column is not performed
(prepared statements, data is supplied using placeholders).
2004-11-05 21:02:12 +03:00
konstantin@mysql.com
c1dc0975c6
A test case for Bug#4172 "Floating point conversion looses precision
...
(prepared staements)": adding the test case to close the bug
(the bug was fixed along with other conversion incompatibilities
in 4.1.7)
2004-11-05 00:45:41 +03:00
monty@mysql.com
071001950e
Merge with 4.1 to get in latest bug fixes
2004-11-04 15:06:24 +02:00
serg@serg.mylan
4650f0acab
bad automerge (?) fixed
2004-11-02 23:34:40 +01:00
monty@mysql.com
2185f1a56c
Remove usage of !$ from mysql-tests
...
Added protocol::flush() for easier embedded-server code
Increase block allocation variables a bit as they where a bit too small for MySQL 4.1
Added option --silent to client_test
2004-11-02 20:13:27 +02:00
monty@mysql.com
afbe601302
merge with 4.1
2004-10-29 19:26:52 +03:00
konstantin@mysql.com
f96d99eba1
A fix and test case for Bug#6096 "field.max_length is always zero for
...
numeric columns (stmt_resultset_metadata)"
2004-10-27 23:46:22 +04:00
konstantin@mysql.com
5622920f2c
Playing with test_bug5399() to make it work on HPUX 64 bit: no
...
reason for the failure was found, so the guess is that it is a
compiler bug.
2004-10-26 22:42:16 +04:00
dlenev@mysql.com
fbdc20e0af
Manual merge of fix for bug #6081 "Call to deprecated mysql_create_db() function crashes
...
server" with main tree.
2004-10-22 20:21:56 +04:00
konstantin@mysql.com
f99d6ccfd0
A test case for Bug#6046: no fix is needed (the bug is already
...
fixed in the main tree).
2004-10-22 15:59:59 +04:00
konstantin@mysql.com
a55e6dda22
Manual merge.
2004-10-21 18:44:40 +04:00
konstantin@mysql.com
49a58fc64e
A fix and test case for bug#6059 "mysql_stmt_field_count returns
...
positive numbers when no resultset is available": when sending
result set metadata we need to use virtual select_result::send_fields,
and not address protocol directly, because select_result descendents may
intercept result set (it's the case for example for SELECT INTO OUTFILE).
2004-10-21 18:33:53 +04:00
konstantin@mysql.com
e546d901ac
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
...
into mysql.com:/home/kostja/work/mysql-4.1-6049
2004-10-20 16:45:09 +04:00
konstantin@mysql.com
0aa9195a2c
A fix and test case for bug#6058 "Prepared statements return '0000-00-00'
...
(date) as empty string": preserve time type (date, time, or datetime) for
zero dates, times, and datetimes.
2004-10-20 16:43:36 +04:00
monty@mishka.local
04c23808a8
Review of all code pushed since last review
...
Simple optimzations and cleanups
Removed compiler warnings and fixed portability issues
Added client functions 'mysql_embedded()' to allow client to check if we are using embedded server
Fixes for purify
2004-10-20 01:28:42 +03:00
dlenev@brandersnatch.localdomain
b7a957d127
Fix for bug #6081 "Call to deprecated mysql_create_db() function crashes
...
server".
Altough mysql_create_db()/mysql_drop_db() API calls are deprecated
since 4.0, they should not crash server and should not stall connection
in case of errors.
2004-10-17 13:59:46 +04:00
konstantin@mysql.com
33fb5ab61b
A fix and test case for Bug#6049 "Loss of sign when using prepared
...
statements and negative time/date values".
The bug was in wrong sprintf format used in the client library.
The fix moves TIME -> string conversion functions to sql-common and
utilized them in the client library.
2004-10-16 00:12:59 +04:00
konstantin@mysql.com
09b50375ed
tests/client_test.c:
...
Make checks (asserts) performed in client_test.c work in non-debug
builds.
2004-10-13 19:27:07 +04:00
kent@mysql.com
05c01360e3
Makefile.am, client_test.test, mysql-test-run.sh:
...
To make client_test work as mysql-test-run test case, needs to install it
2004-10-08 01:39:20 +02:00
konstantin@mysql.com
2aa7ec0d9d
A fix for Bug#5748 "Prepared statement with BETWEEN and bigint values
...
crashes mysqld": implementation for a generic item tree modifications
registry. Every item tree modification which should be rolled back for
subsequent execution of a prepared statement or stored procedure should
be saved in the registry. All such modifications are rolled back at once
during cleanup stage of PS.
Actual fix for the bug just adds a call to register modifications to
convert_constant_item.
Post review fixes implemented.
2004-10-08 02:21:19 +04:00
kent@mysql.com
155e1ec330
client_test.test:
...
Run client_test as a testcase
new file
mysql-test-run.sh:
More clearly report failure if --force, also exit 1
client_test.c:
Use MAXPATHLEN in test_frm_bug()
Renable test cases disabled for running from mysql-test-run
mysqltest.c:
Don't check errno from popen, may not be set
2004-09-28 16:27:50 +02:00
kent@mysql.com
405fdcb6dc
Merge
2004-09-25 10:34:54 +02:00
kent@mysql.com
7d4445f17b
client_test.c:
...
Return exit(1) instead of exit(0) on failure.
Allow longer path names using MAXPATHLEN.
Added option --testcase that skips some failing tests.
Replaced 'return' with exit(1) in test_frm_bug().
mysqltest.c:
Let --exec fail if command fails
2004-09-25 10:30:36 +02:00
konstantin@mysql.com
be7415c11a
fix client_test to be a bit faster under valgrind.
2004-09-23 20:38:18 +04:00
konstantin@mysql.com
36548b10ca
A fix and test case for Bug#5315 "mysql_change_user() doesn't free
...
prepared statements."
2004-09-22 15:50:07 +04:00
konstantin@mysql.com
10aedc87d8
Fix the test case for bug#4231 (which before was passing just by occasion)
2004-09-15 02:43:17 +04:00
joerg@mysql.com
41aadd909d
Syntax correction for bug#5560.
2004-09-14 09:46:05 +02:00
paul@kite-hub.kitebird.com
8cb8c1e15a
client_test.c:
...
fix typos noticed while poking around in test program.
2004-09-08 20:13:27 -05:00
konstantin@mysql.com
48162f9653
A fix and test case for Bug#5194 "Bulk Insert Failures with Prepared
...
Statements":
- fix a couple of net->buff overruns in libmysql,
- check in the server that statement parameter count is less than
65535 (maximum value supported by prepared statements protocol).
2004-09-08 23:07:11 +04:00
konstantin@mysql.com
3640843a8b
A fix and test case for bug#5399 "Wrong statement executed by MySQL
...
server" (use my_charset_bin for stmt id hash).
2004-09-08 12:33:05 +04:00
monty@mysql.com
31122efde7
Merge with 4.1
...
(Includes merge of arena code in 4.1 and 5.0)
2004-09-06 15:14:10 +03:00
monty@mysql.com
32594c9989
Print value of Item_param if it has a value (when debugging)
2004-09-04 15:02:57 +03:00
monty@mysql.com
46ff90738b
Merge with pulled code
2004-09-03 22:38:45 +03:00
monty@mysql.com
cbd67f49e1
Cleanup of new code pushed into 5.0 since last pull
...
Merged the different find_xxxx_table_in_list functions to one + some inline functions
2004-09-03 21:43:04 +03:00
monty@mysql.com
936eb4b4f4
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
...
into mysql.com:/home/my/mysql-4.1
2004-09-03 02:26:00 +03:00
konstantin@mysql.com
2f191db2b1
A fix and test case for Bug#4231 "Wrong result with MYSQL_TIME
...
parameters": when unpacking binary time recieved from client, handle
the case when length is 0: it means all MYSQL_TIME members are zero.
2004-09-02 20:16:01 +04:00
monty@mysql.com
8547d98c88
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
...
into mysql.com:/home/my/mysql-4.1
2004-09-02 16:58:01 +03:00
monty@mysql.com
dec44916c1
After merge fixes
2004-09-02 16:57:26 +03:00
konstantin@mysql.com
3ee572768b
Make client_test pass on 64-bit HP-UX11: long is 64 bit,
...
replace all (mis)uses of it with int32.
2004-09-01 12:50:23 +04:00
konstantin@mysql.com
46f1922fb5
A short fix and test case for Bug#5126
...
"Mediumint and PS problem": just treat mediumint as long.
2004-08-26 22:47:34 +04:00
serg@serg.mylan
08f3ba0e29
after merge
2004-08-26 18:22:22 +02:00
konstantin@mysql.com
f8c0850521
Cleanup in libmysql.
2004-08-05 02:43:18 -07:00
konstantin@mysql.com
7ff92949db
Compilation failure fix.
2004-08-03 21:59:52 -07:00
konstantin@mysql.com
34ec6a2411
client_test.cc -> client_test.c
2004-08-03 18:58:35 -07:00
konstantin@mysql.com
b29ba2284e
Followup3: operator new and operator delete are defined in mysys.
...
The fix makes client_test.cc compile with embedded library.
2004-08-03 04:30:31 -07:00
konstantin@mysql.com
d3e520ce7e
Port of cursors to be pushed into 5.0 tree:
...
- client side part is simple and may be considered stable
- server side part now just joggles with THD state to save execution
state and has no additional locking wisdom.
Lot's of it are to be rewritten.
2004-08-03 03:32:21 -07:00
bell@sanja.is.com.ua
9336d36cf8
VIEW
...
two TABLE_LIST copy eliminated
2004-07-16 01:15:55 +03:00
monty@mysql.com
b97ef911c5
Merge
2004-07-15 04:28:42 +03:00
serg@serg.mylan
9982d79768
don't use atoll
2004-07-10 10:17:35 +02:00
monty@mysql.com
1e31199995
Merge with 4.1.3-beta
2004-07-07 11:29:39 +03:00
konstantin@mysql.com
354e2ba67b
Type of MYSQL_BIND::buffer changed to void *
2004-06-25 17:04:33 +04:00
konstantin@mysql.com
674a1c4e18
- fixed test_frm_bug test to work with increased number of columns in
...
result of SHOW TABLE STATUS
2004-06-24 20:08:42 +04:00
konstantin@mysql.com
a30fcdc690
Fix for Bug#4030 "Client side conversion string -> date type doesn't
...
work (prepared statements)" and after-review fixes:
- str_to_TIME renamed to str_to_datetime to pair with str_to_time
- functions str_to_time and str_to_TIME moved to sql-common
- send_data_str now supports MYSQL_TYPE_TIME, MYSQL_TIME_DATE,
MYSQL_TIME_DATETIME types of user input buffers.
- few more comments in the client library
- a test case added.
2004-06-24 19:08:36 +04:00
konstantin@mysql.com
b81315d6e8
Fixes to make client_test run on 64 bit Sun: a bug in libmysql and
...
test suite fixed.
2004-06-22 23:07:08 +04:00
konstantin@mysql.com
02c654d218
- automatic dependency tracking for client_test enabled
2004-06-22 14:47:41 +04:00
konstantin@mysql.com
3f53a1cb44
Fix for bug#4236 "Server crash on attempt to execute non-prepared
...
statement": check that statement is not null when accessing it's name.
2004-06-22 11:04:41 +04:00
konstantin@mysql.com
e7de488713
Compilation error on AIX (IBM C Compiler Version 6) fixed.
2004-06-16 11:29:22 +04:00
konstantin@mysql.com
21c524e712
Fix for Bug#4079 "error checking in prepared statements":
...
reset mysql->status if there was an error in row reading.
2004-06-11 13:12:29 +04:00
konstantin@mysql.com
dc11d3cfa1
Proposed fix for Bug#4026 "Microseconds part of TIME/DATETIME types
...
is broken (prepared statements)": fixed date handling in many places
of prepared statements code.
2004-06-09 03:21:50 +04:00
konstantin@mysql.com
dabc0e774e
mysql_stmt_field_count()
2004-06-06 02:27:05 +04:00
konstantin@mysql.com
21783e8537
Few more cleanups in client_test:
...
No need for mysql_commit, especially after DDL statements.
2004-06-05 03:09:53 +04:00
konstantin@mysql.com
1ae0504c6a
The comment is not true any more.
...
Is there a way to sefely use MYSQL_BIND structure without bzero?
2004-06-05 02:56:50 +04:00
konstantin@mysql.com
7d09dd999a
HAVE_DEPRECATED_411_API macro removed.
2004-06-04 18:38:18 +04:00
konstantin@mysql.com
eaa4d106e6
Fix for Bug#3796 "Prepared statement, select concat(<parameter>,<column>), wrong
...
result": new Item_param member for use in val_str()
2004-05-31 14:21:48 +04:00
pem@mysql.com
71eddc362e
Merging 4.1 to 5.0.
2004-05-26 17:04:45 +02:00
konstantin@mysql.com
f207b33a7b
Support for character set conversion in binary protocol: another go
...
after Monty's review.
- Item_param was rewritten.
- it turns out that we can't convert string data to character set of
connection on the fly, because they first should be written to the binary
log.
To support efficient conversion we need to rewrite prepared statements
binlogging code first.
2004-05-25 02:03:49 +04:00
bell@sanja.is.com.ua
329ac02441
assigning max_length parameter for Item_param (Bug #3811 )
2004-05-20 19:08:34 +03:00
hf@deer.(none)
af39bd4125
Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.1
...
into deer.(none):/home/hf/work/mysql-4.1.ps
2004-05-19 10:28:24 +05:00
monty@mysql.com
21f1bca789
Portability fixes
...
Fixed wrong number of warnings/duplicates for machines with high-byte-first
2004-05-19 05:09:10 +03:00
hf@deer.(none)
bbfe390afd
Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.1
...
into deer.(none):/home/hf/work/mysql-4.1.ps
2004-05-17 18:45:50 +05:00
hf@deer.(none)
e18cd2ea9f
Fixes for #3371 , #3372 , #3374 , #3375 , #3376
2004-05-15 17:07:44 +05:00
monty@mysql.com
e0a4b51215
Better fix for bug #3749 (bug in deleting automatic generated foreign keys)
2004-05-15 11:57:40 +03:00
pem@mysql.comhem.se
ec92106535
Post-merge fixes.
...
Note: One sp.test still fails (prime), and rpl_server_id2.test fails (will be fixed by guilhem ASAP).
2004-05-14 16:00:57 +02:00
bell@sanja.is.com.ua
a00117902f
treat parameter as constant in ORDER BY check of fields in SELECT list(Bug #3686 )
2004-05-10 13:29:02 +03:00
pem@mysql.com
bf45960eef
Merge 4.1 -> 5.0
2004-05-07 18:52:06 +02:00
konstantin@mysql.com
b58df2e9d4
mysql_stmt_reset now expects ok/error packet from server.
2004-05-06 22:44:00 +04:00
konstantin@mysql.com
57feb6625a
Few cleanups to client_test.c
2004-05-06 13:49:20 +04:00
monty@mysql.com
104fdf607d
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
...
into mysql.com:/home/my/mysql-4.1
2004-05-05 12:40:59 +03:00
dlenev@brandersnatch.localdomain
f1c8e165a5
After merge fix.
...
Now test_bug1664() uses new statement checking macros.
2004-05-04 20:02:55 +04:00
dlenev@brandersnatch.localdomain
2c30359aa4
Manual merge of bugfix for Bug #1664 .
2004-05-04 19:13:18 +04:00
dlenev@brandersnatch.localdomain
c7fbcbca7a
Fix for remaining issues described in Bug #1664
...
"mysql_send_long_data() API call is completely broken".
Now we are resetting some members (long_data_supplied/null_value...) of Item_param to its
initial state after each execution of prepared statement. We also manipulating
Item_param::maybe_null/null_value only via Item_param::set_* setters which makes code a bit
more robust.
2004-05-04 19:08:19 +04:00
monty@mysql.com
59ddd8c738
Fix to handle unsigned data in prepared statements (Bug #3447 )
...
Fixed security problem that password was temporarly reset when someone changed GRANT for a user. (Bug #3404 )
Fixed problem with PROCEDURE analyse() and impossible WHERE (Bug #2238 )
Don't auto-repair tables in mysqlcheck if table type doesn't support 'check' command.
2004-05-04 15:02:38 +03:00
bell@sanja.is.com.ua
66e7ff2a8c
return table list of fake_select in empty state to prevent using TABLE_LIST allocated on stack in next execution of PS (Bug #3577 )
2004-05-03 13:58:01 +03:00
sergefp@mysql.com
6475db534c
Fix client_test to use new statement assertion macros
2004-04-30 17:21:06 +04:00
sergefp@mysql.com
d854a85f0c
Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.1
...
into mysql.com:/dbdata/psergey/mysql-4.1-bug3420
2004-04-30 16:28:04 +04:00
sergefp@mysql.com
448e4bbdde
Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.1
...
into mysql.com:/dbdata/psergey/mysql-4.1-bug3420
2004-04-30 15:32:41 +04:00
monty@mysql.com
661aeb5af2
Only calculate MYSQL_FIELD->max_length if mysql_stmt_attr_set(..., STMT_ATTR_UPDATE_MAX_LENGTH) is done.
2004-04-30 14:24:06 +03:00
monty@mysql.com
0a95918ee9
Merge
2004-04-30 14:04:51 +03:00
monty@mysql.com
6678ecf19a
Update 'MYSQL_FIELD->max_length' on mysql_stmt_store_result() (Bug #1647 )
...
Added checking of cut read lines in bootstrap thread (Bug #2874 )
2004-04-30 14:02:17 +03:00
konstantin@mysql.com
07eaf18642
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
...
into mysql.com:/home/kostja/mysql/mysql-4.1-u2
2004-04-30 03:00:55 +04:00
konstantin@mysql.com
aec8522569
Fix for Bug#3035 "Prepared statement integer inserts": now unsigned
...
flag is sent to server with placeholder types.
There were no need to extend the protocol as one additional byte
was reserved for placeholder code, when placeholder code is in range 0-255.
So this byte is now used for flags. Post-review fixes added.
2004-04-30 03:00:19 +04:00
sergefp@mysql.com
40ac433e4b
Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.1
...
into mysql.com:/dbdata/psergey/mysql-4.1-my-ps-bugs
2004-04-30 00:00:54 +04:00
sergefp@mysql.com
b8802c514d
Fix for BUG#3567: Disallow several SQL statements inside a Prepared Statement.
2004-04-27 03:44:41 +04:00
sergefp@mysql.com
baa85a2e05
Fixed client_test to run with MAX_KEY=64.
2004-04-27 02:57:00 +04:00
sergefp@mysql.com
a2a7eb2e74
Testcase for BUG#3420. The bug itself has been fixed by some previous PS code changes made since 4.1.1a
2004-04-14 01:42:01 +04:00
sergefp@mysql.com
5e22d6cbfc
Fix and testcase for BUG#3367.
2004-04-13 00:13:25 +04:00
bell@sanja.is.com.ua
0d773f29de
complex join example for test suite
2004-04-09 10:30:07 +03:00
bell@sanja.is.com.ua
ef5f15c351
fixed subquery in the FROM clause with parameter (BUG#3020)
2004-04-08 23:28:47 +03:00
bell@sanja.is.com.ua
d4f5f1b7ac
field->store resuts passing is fixed for REAL and INT for Item_param (BUG3223)
2004-04-08 11:07:37 +03:00
bell@sanja.is.com.ua
5e37c41fae
new error for unsupported command in PS
...
fixed IN subselect with basic constant left expression
SQLCOM_CREATE_TABLE, SQLCOM_UPDATE_MULTI, SQLCOM_REPLACE_SELECT, SQLCOM_INSERT_SELECT, QLCOM_DELETE_MULTI fixed to be compatible with PS (BUG#3398, BUG#3406)
fixed multiupdate privelege check (BUG#3408)
fixed multiupdate tables check (BUG#3411)
unchecked commands now is rejected by PS protocol to avoid serever crash
fixed cleunup procedure to be compatible sith DO/SET (BUG#3393)
2004-04-08 00:16:17 +03:00
pem@mysql.com
dfd59e296e
Merge 4.1 -> 5.0.
2004-04-07 19:07:44 +02:00
bell@sanja.is.com.ua
75e7ca479e
reverting table list to be able to use it in next PS call (BUG#2811)
2004-04-06 00:10:43 +03:00
bell@sanja.is.com.ua
b30c28d85d
for Item_param we have to have value set instead of fave item fixed (BUG#3353)
...
fixed outer joins
test of different joins included
2004-04-03 17:23:41 +03:00
bell@sanja.is.com.ua
2f4d2a0e38
fixed brocken of client_test
...
fixed aggregate functions in PS (BUG#3360)
2004-04-03 11:13:51 +03:00
bell@sanja.is.com.ua
5568155e04
fix for table/field caching mechanism
...
save moving ON/USING tables conditions to WHERE clause (BUG#2794)
2004-04-01 03:00:38 +03:00
pem@mysql.com
e5f9e18d2f
Merge fix.
2004-03-25 17:48:00 +01:00
pem@mysql.comhem.se
6395822932
Fixed BUG#3117: LAST_INSERT_ID() works incorrectly inside stored procedure.
...
This turned out to be a problem for prepared statements as well; the id was
evaluated once, at parse time.
2004-03-25 17:42:13 +01:00
bell@sanja.is.com.ua
ce7798c45e
fixed union with prepared statement bug found by Konstantin
2004-03-23 14:26:54 +02:00
bell@sanja.is.com.ua
613104ad25
merge
2004-03-18 15:21:06 +02:00
bell@sanja.is.com.ua
8035ce40ec
DBUG_ASSERT(fixed == 0) added to fix_fields()
2004-03-17 14:26:26 +02:00
monty@mysql.com
350b433569
merge with 4.0
2004-03-16 22:41:30 +02:00
konstantin@mysql.com
7753c6b93e
New call mysql_stmt_init() introduced.
...
Renames:
mysql_bind_param -> mysql_stmt_bind_param
mysql_bind_result -> mysql_stmt_bind_result
mysql_execute -> mysql_stmt_execute
mysql_fetch -> mysql_stmt_fetch
mysql_fetch_column -> mysql_stmt_fetch_column
mysql_get_metadata -> mysql_stmt_result_metadata
mysql_param_count -> mysql_stmt_param_count
mysql_param_result -> mysql_stmt_param_metadata
mysql_prepare -> mysql_stmt_prepare
mysql_send_long_data -> mysql_stmt_send_long_data
client_test.c cleaned up from memory leaks
2004-03-05 16:55:09 +03:00
konstantin@oak.local
8cc8b0ea5c
Desperate attempt to push part of prepared statements cleanup which was
...
reviewed in Saint-Petersbourg (including post-review fixes).
2004-03-02 22:39:50 +03:00
serg@serg.mylan
d6307b7643
compare a decimal value with a string not a double, as we want to test for an *exact* match
2004-02-29 14:30:44 +01:00
bell@sanja.is.com.ua
8a442c4e0d
after review fix
2004-02-20 15:37:45 +02:00
bell@sanja.is.com.ua
a66b398eb8
merge
2004-02-17 11:12:55 +02:00
monty@mysql.com
050af89dd8
Merge with public tree
2004-02-16 10:31:05 +02:00
bell@sanja.is.com.ua
44b37b089a
merge
2004-02-14 13:31:39 +02:00
pem@mysql.com
5faf244b30
Merge mysql.com:/home/pem/work/mysql-4.1
...
into mysql.com:/home/pem/work/mysql-5.0-merge
2004-02-13 17:39:00 +01:00
konstantin@mysql.com
b865fb1cf3
manual merge, bug #2247
2004-02-13 00:50:03 +03:00
bell@sanja.is.com.ua
f20b775c63
PS fixed to be compatible with derived tables (BUG#2641)
2004-02-12 18:50:00 +02:00
bell@sanja.is.com.ua
6777120d85
merge
2004-02-12 11:12:16 +02:00
bell@sanja.is.com.ua
272bd74abb
memory leacks in PS with subqueries fixed (adddition to fix of BUG#2462)
2004-02-12 03:10:26 +02:00
dlenev@mysql.com
d38c4fcad0
Manual merge.
2004-02-11 15:10:54 +03:00
guilhem@gbichot2.local
e450acc71c
Fix for BUG#2703
...
"MySQL server does not detect if garbage chars at the end of query":
Detect garbage chars at the end of the query or at the end of a query
for a prepared statement (which happens if mysql_real_query() or mysql_prepare()
were called with a too big 'length' parameter (bigger than the real intended
length of the query: then we receive a query + garbage characters from the
client). This resulted in garbage chars written into the binlog.
Now instead the client receives something like:
'You have an error in your SQL syntax. Check the manual that corresponds
to your MySQL server version for the right syntax to use near '!stmt'
at line 1' i.e. the server is pointing at the weird tail of the query
(this '!stmt' are the garbage chars sent by the client).
All tests pass, except mysqldump.test and ctype_utf8.test but they failed
before the patch.
2004-02-11 12:32:47 +01:00
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
pem@mysql.comhem.se
e2cbc87bdc
Post-merge fixes.
2003-12-20 15:43:24 +01:00
pem@mysql.com
d672412102
Merge 4.1 to 5.0 (the prep stmt fixes in particular).
2003-12-20 13:10:29 +01:00
konstantin@oak.local
2a25b2617a
Prepared_statement deployed instead of PREP_STMT.
2003-12-20 02:16:10 +03:00
pem@mysql.com
24a2ae44a3
Merged 4.1 -> 5.0
2003-12-09 19:00:34 +01:00
konstantin@oak.local
54f76e2c93
commented why valgrind barks at the bug #1500
2003-12-08 13:30:14 +03:00
pem@mysql.com
6e717133c5
Merge 4.1 to 5.0
2003-12-01 16:14:40 +01: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
pem@mysql.com
28a2c6a96b
Merging 4.1->5.0.
2003-11-19 15:19:46 +01: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
pem@mysql.com
337238b78a
Merging 4.1->5.0
2003-10-22 16:10:22 +02:00
monty@narttu.mysql.fi
6056cfadfc
Merge with 4.0.16
2003-10-07 15:42:26 +03:00
bell@laptop.sanja.is.com.ua
b0b87a111a
after review patch (SCRUM)
2003-10-06 11:13:25 +03:00
bell@laptop.sanja.is.com.ua
9f7b900014
Merge laptop.sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0
...
into laptop.sanja.is.com.ua:/home/bell/mysql/bk/work-udf-5.0
2003-09-28 12:00:30 +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
bell@sanja.is.com.ua
8554796252
new UDF arguments interface (WL#1017) (SCRUM)
2003-09-13 17:47:59 +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