summaryrefslogtreecommitdiff
path: root/sql-common
Commit message (Collapse)AuthorAgeFilesLines
* Fixes bug #5588. Additions after merge from 4.0.SergeyV@selena.2005-09-071-1/+1
|
* Fix mysql_info() returning bad data in the results of a multi-statementjimw@mysql.com2005-08-101-2/+3
| | | | query that mixed statements that do and do not return info. (Bug #11688)
* Review of new pushed codemonty@mysql.com2005-08-091-2/+4
| | | | | | - Fixed some error condtion when handling dates with 'T' - Added extra test for bug #11867 (Wrong result with "... WHERE ROW( a, b ) IN ( SELECT DISTINCT a, b WHERE ...)" to show it's not yet fixed - Safety fixes and cleanups
* Fix parsing of dates with 'T' between date and time, as in ISO-8601jimw@mysql.com2005-08-021-5/+7
| | | | date format. (Bug #7308)
* fix for bug#12001georg@lmy002.wdf.sap.corp2005-07-191-1/+1
|
* Merge mysql.com:/home/jimw/my/mysql-4.1-8866jimw@mysql.com2005-04-041-0/+27
|\ | | | | | | into mysql.com:/home/jimw/my/mysql-4.1-clean
| * Fix reconnect when using prepared statements, and addjimw@mysql.com2005-03-281-0/+27
| | | | | | | | | | --disable_reconnect and --enable_reconnect to mysqltest so that it can be tested properly. (Bug #8866)
* | A fix for Bug#8226 "Cannot connect via shared memory": konstantin@mysql.com2005-03-261-7/+8
|/ | | | | | | provide created shared memory objects with proper access rights to make them usable when client and server are running under different accounts. Post review fixes.
* initialize mysql->charset in mysql_initserg@serg.mylan2005-01-161-0/+1
|
* Replace all sprintf() calls with my_snprintf() in client.c. All of thejimw@mysql.com2005-01-091-22/+38
| | | | | format strings (in all languages) already included field limits on the specifiers, so this is just protection against future mistakes. (Bug #7556)
* client.c:paul@kite-hub.kitebird.com2005-01-041-2/+3
| | | | | | | Make multi-statements the preferred option name (to coincide with the renaming of the CLIENT_MULTI_RESULTS symbol to CLIENT_MULTI_STATEMENTS). Continue to allow multi-queries for backward compatibility.
* Merged fixes for bug #7297 "Two digit year should be interpreted dlenev@brandersnatch.localdomain2004-12-301-2/+1
| | | | | correctly even with zero month and day" and bug #7515 "from_unixtime(0) now returns NULL instead of the Epoch" into 4.1 tree.
* fix indentationwax@kishkin.ru2004-12-231-2/+2
| | | | | | add space after comma add space after equal add comments in vio_close_shared_memory()
* BUG#6056 wax@kishkin.ru2004-12-141-1/+11
| | | | | | | | | (continue) added event_conn_closed replaced WaitForSingleObject on WaitForMultipleObjects inserted a check in vio_close() added SetEvent() for event_conn_closed
* Manual merge of fix for bug #6266 "Invalid DATETIME value is not handleddlenev@mysql.com2004-11-191-3/+4
|\ | | | | | | properly" with main tree.
| * Fix for bug #6266 "Invalid DATETIME value is not handled properly".dlenev@brandersnatch.localdomain2004-11-151-3/+4
| | | | | | | | | | | | | | 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.
* | After merge fixesmonty@mysql.com2004-11-121-5/+18
|/
* A fix and test case for Bug#6096 "field.max_length is always zero for konstantin@mysql.com2004-10-271-3/+0
| | | | numeric columns (stmt_resultset_metadata)"
* Added missing initialiermonty@mysql.com2004-10-261-2/+2
|
* A lot of fixes for prepared statements (PS):monty@mysql.com2004-10-262-1/+7
| | | | | | | | | | | | | | | | New mysqltest that can run mysqltest with PS Added support for ZEROFILL in PS Fixed crash when one called mysql_stmt_store_result() without a preceding mysql_stmt_bind_result() Updated test cases to support --ps-protocol (Some tests are still run using old protocol) Fixed crash in PS when using SELECT * FROM t1 NATURAL JOIN t2... Fixed crash in PS when using sub queries Create table didn't signal when table was created. This could cause a "DROP TABLE created_table" in another thread to wait "forever" Fixed wrong permissions check in PS and multi-table updates (one could get permission denied for legal quries) Fix for PS and SELECT ... PROCEDURE Reset all warnings when executing a new PS query group_concat(...ORDER BY) didn't work with PS Fixed problem with test suite when not using innodb
* Merge bk-internal.mysql.com:/home/bk/mysql-4.1konstantin@mysql.com2004-10-201-0/+72
|\ | | | | | | into mysql.com:/home/kostja/work/mysql-4.1-6049
| * A fix and test case for Bug#6049 "Loss of sign when using prepared konstantin@mysql.com2004-10-161-0/+72
| | | | | | | | | | | | | | 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.
* | Review of all code pushed since last reviewmonty@mishka.local2004-10-201-1/+1
|/ | | | | | | 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
* A fix and test case for Bug#5315 "mysql_change_user() doesn't freekonstantin@mysql.com2004-09-221-14/+27
| | | | prepared statements."
* Merge mysql.com:/home/wax/mysql/mysql-4.1wax@mysql.com2004-09-091-3/+2
|\ | | | | | | into mysql.com:/home/wax/mysql/mysql-4.1group_concat
| * Merge mysql.com:/home/wax/mysql/mysql-4.1wax@mysql.com2004-08-191-3/+2
| |\ | | | | | | | | | into mysql.com:/home/wax/mysql/mysql-4.1group_concat
| | * Change information text in pipe and shared memorywax@kishkin.ru2004-08-191-3/+2
| | |
* | | client.c:paul@ice.snake.net2004-09-061-0/+1
| | | | | | | | | | | | sqlstat uninitialized in mysql_init().
* | | A fix and test case for Bug#4231 "Wrong result with MYSQL_TIMEkonstantin@mysql.com2004-09-021-0/+10
| | | | | | | | | | | | | | | parameters": when unpacking binary time recieved from client, handle the case when length is 0: it means all MYSQL_TIME members are zero.
* | | Merge eagle.mysql.r18.ru:/home/vva/work/mysql.orig/clear/mysql-4.1vva@eagle.mysql.r18.ru2004-08-241-3/+2
|\ \ \ | | | | | | | | | | | | into eagle.mysql.r18.ru:/home/vva/work/BUG_4998/mysql-4.1
| * | | more accurate processing of find_type resultvva@eagle.mysql.r18.ru2004-08-241-3/+2
| | | | | | | | | | | | | | | | (Bug #4998 --protocol doesn't reject bad values)
* | | | Fixed windows-specific warning about undeclared localtime_r() in my_time.c.dlenev@brandersnatch.localdomain2004-08-241-0/+2
| | | | | | | | | | | | | | | | | | | | We have to include my_pthread.h since it is the place where localtime_r() is declared on platforms where this function is missing.
* | | | Bug #4629 Crash after SLAVE STOP, if the IO thread is in special state.rburnett@build.mysql.com2004-08-231-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | client.c: Removed call to clear_slave_vio in end_server(). Removed header declaration of clear_slave_vio slave.cc: Removed clear_slave_vio function and added calls to thd->clear_active_vio before each call to end_server()
* | | | Bug #4629 Crash after SLAVE STOP, if the IO thread is in special state.rburnett@build.mysql.com2004-08-211-0/+11
|/ / / | | | | | | | | | | | | | | | | | | client.c: Added call to clear_slave_vio inside end_server only when under Windows with repliaction slave.cc: Added clear_slave_vio function for clearing active vio on THD under Windows replication
* | | Merge bk@192.168.21.1:/usr/home/bk/mysql-4.1hf@deer.(none)2004-08-191-3/+4
|\ \ \ | |/ / |/| | | | | into deer.(none):/home/hf/work/mysql-4.1.emb
| * | Fixes for bugs in embedded library:hf@deer.(none)2004-07-221-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #4700 (Unsigned value returned as signed) just no appropriate checking #4701 (Errors returned earlier than expected) all errors returned from send_command() #4702 (Result isn't freed properly if there's no retrieval) flush_use_result has only 'client' version and should be made 'virtual'
* | | after merge fixesserg@serg.mylan2004-08-191-1/+1
| |/ |/|
* | - removed several C++-style comments (//) - these confuse the IBMlenz@mysql.com2004-08-031-5/+5
| | | | | | | | compiler
* | syntax fix: superfluous ';' which caused a problem with gcc 2.95guilhem@mysql.com2004-07-301-1/+1
| |
* | WL#1580: --start-datetime, --stop-datetime, --start-position (alias for ↵guilhem@mysql.com2004-07-291-0/+155
|/ | | | | | | | | | | --position) and --stop-position options for mysqlbinlog, with a test file. This enables user to say "recover my database to how it was this morning at 10:30" (mysqlbinlog "--stop-datetime=2003-07-29 10:30:00"). Using time functions into client/ made me move them out of sql/ into sql-common/. + (small) fix for BUG#4507 "mysqlbinlog --read-from-remote-server sometimes cannot accept 2 binlogs" (that is, on command line).
* client.c, libmysql.c:paul@kite-hub.kitebird.com2004-06-301-2/+2
| | | | | | | | Symbol spelling change. errmsg.c: Client error message edits. errmsg.h: Two symbol spelling changes.
* After merge fixesmonty@mysql.com2004-06-251-0/+4
|
* - fixed test_frm_bug test to work with increased number of columns inkonstantin@mysql.com2004-06-241-0/+561
| | | | result of SHOW TABLE STATUS
* Fix for Bug#4030 "Client side conversion string -> date type doesn't konstantin@mysql.com2004-06-241-1/+1
| | | | | | | | | | 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.
* After merge fixesmonty@mysql.com2004-06-211-1/+2
| | | | Return NULL if a time argument is given to date_add(). (Warning will be shown after Dimitri's timezone patch is pushed)
* assert.h needed for my_dbug.h now is included in my_dbug.h, where it for konstantin@mysql.com2004-06-101-1/+0
| | | | | some reason wasn't included before. A lot of files cleaned up from #include <assert.h>
* client.c:bar@bar.intranet.mysql.r18.ru2004-06-071-26/+25
| | | | Bug #3990 `--with-charset' ./configure's switch doesn'taffect mysql client library.
* Added authentication code that was missed in mergemonty@mysql.com2004-06-031-1/+57
| | | | Added new windows configuration
* Made my_snprintf() behavior snprintf() compatible when printing %x arguments ↵dlenev@brandersnatch.localdomain2004-05-271-1/+1
| | | | | | | | | | | | (it should produce hex digits in lower case). (fixed version) Replaced _dig_vec array with two _dig_vec_upper/_dig_vec_lower arrays. Added extra argument to int2str function which controls case of digits you get. Replaced lot of invocations of int2str for decimal radix with more optimized int10_to_str() function. Removed unused my_itoa/my_ltoa functions.
* Fixed many compiler warningsmonty@mysql.com2004-04-051-1/+1
| | | | | | Fixed bugs in group_concat with ORDER BY and DISTINCT (Bugs #2695, #3381 and #3319) Fixed crash when doing rollback in slave and the io thread catched up with the sql thread Set locked_in_memory properly