summaryrefslogtreecommitdiff
path: root/libmysql/client_settings.h
Commit message (Collapse)AuthorAgeFilesLines
* Enable WL#4435.Alexander Nozdrin2010-01-121-1/+2
|
* Disable WL#4435.MySQL Build Team2009-11-171-2/+1
| | | | Patch done by Alik, received for the 5.5.0-beta release build in mail.
* Merge from mysql-next-mr.Alexander Nozdrin2009-10-281-0/+6
|\
| * WL#5016: Fix header file include guardsMats Kindahl2009-09-231-0/+6
| | | | | | | | Adding header include file guards to files that are missing such.
* | Backport of revno 2630.28.10, 2630.28.31, 2630.28.26, 2630.33.1,Konstantin Osipov2009-10-221-3/+7
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2630.39.1, 2630.28.29, 2630.34.3, 2630.34.2, 2630.34.1, 2630.29.29, 2630.29.28, 2630.31.1, 2630.28.13, 2630.28.10, 2617.23.14 and some other minor revisions. This patch implements: WL#4264 "Backup: Stabilize Service Interface" -- all the server prerequisites except si_objects.{h,cc} themselves (they can be just copied over, when needed). WL#4435: Support OUT-parameters in prepared statements. (and all issues in the initial patches for these two tasks, that were discovered in pushbuild and during testing). Bug#39519: mysql_stmt_close() should flush all data associated with the statement. After execution of a prepared statement, send OUT parameters of the invoked stored procedure, if any, to the client. When using the binary protocol, send the parameters in an additional result set over the wire. When using the text protocol, assign out parameters to the user variables from the CALL(@var1, @var2, ...) specification. The following refactoring has been made: - Protocol::send_fields() was renamed to Protocol::send_result_set_metadata(); - A new Protocol::send_result_set_row() was introduced to incapsulate common functionality for sending row data. - Signature of Protocol::prepare_for_send() was changed: this operation does not need a list of items, the number of items is fully sufficient. The following backward incompatible changes have been made: - CLIENT_MULTI_RESULTS is now enabled by default in the client; - CLIENT_PS_MULTI_RESUTLS is now enabled by default in the client.
* Fix compile warnings.anozdrin/alik@station.2007-09-291-0/+4
|
* Embedded Server doesn't build on Windows.iggy@alf.2007-06-151-1/+1
| | | | | | - Add build configuration parameter EMBEDDED_ONLY which will configure the VS solution to produce only mysql embedded binary. - Make necessary updates to successfully compile solution.
* WL#3817: Simplify string / memory area types and make things more consistent ↵monty@mysql.com/narttu.mysql.fi2007-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (first part) The following type conversions was done: - Changed byte to uchar - Changed gptr to uchar* - Change my_string to char * - Change my_size_t to size_t - Change size_s to size_t Removed declaration of byte, gptr, my_string, my_size_t and size_s. Following function parameter changes was done: - All string functions in mysys/strings was changed to use size_t instead of uint for string lengths. - All read()/write() functions changed to use size_t (including vio). - All protocoll functions changed to use size_t instead of uint - Functions that used a pointer to a string length was changed to use size_t* - Changed malloc(), free() and related functions from using gptr to use void * as this requires fewer casts in the code and is more in line with how the standard functions work. - Added extra length argument to dirname_part() to return the length of the created string. - Changed (at least) following functions to take uchar* as argument: - db_dump() - my_net_write() - net_write_command() - net_store_data() - DBUG_DUMP() - decimal2bin() & bin2decimal() - Changed my_compress() and my_uncompress() to use size_t. Changed one argument to my_uncompress() from a pointer to a value as we only return one value (makes function easier to use). - Changed type of 'pack_data' argument to packfrm() to avoid casts. - Changed in readfrm() and writefrom(), ha_discover and handler::discover() the type for argument 'frmdata' to uchar** to avoid casts. - Changed most Field functions to use uchar* instead of char* (reduced a lot of casts). - Changed field->val_xxx(xxx, new_ptr) to take const pointers. Other changes: - Removed a lot of not needed casts - Added a few new cast required by other changes - Added some cast to my_multi_malloc() arguments for safety (as string lengths needs to be uint, not size_t). - Fixed all calls to hash-get-key functions to use size_t*. (Needed to be done explicitely as this conflict was often hided by casting the function to hash_get_key). - Changed some buffers to memory regions to uchar* to avoid casts. - Changed some string lengths from uint to size_t. - Changed field->ptr to be uchar* instead of char*. This allowed us to get rid of a lot of casts. - Some changes from true -> TRUE, false -> FALSE, unsigned char -> uchar - Include zlib.h in some files as we needed declaration of crc32() - Changed MY_FILE_ERROR to be (size_t) -1. - Changed many variables to hold the result of my_read() / my_write() to be size_t. This was needed to properly detect errors (which are returned as (size_t) -1). - Removed some very old VMS code - Changed packfrm()/unpackfrm() to not be depending on uint size (portability fix) - Removed windows specific code to restore cursor position as this causes slowdown on windows and we should not mix read() and pread() calls anyway as this is not thread safe. Updated function comment to reflect this. Changed function that depended on original behavior of my_pwrite() to itself restore the cursor position (one such case). - Added some missing checking of return value of malloc(). - Changed definition of MOD_PAD_CHAR_TO_FULL_LENGTH to avoid 'long' overflow. - Changed type of table_def::m_size from my_size_t to ulong to reflect that m_size is the number of elements in the array, not a string/memory length. - Moved THD::max_row_length() to table.cc (as it's not depending on THD). Inlined max_row_length_blob() into this function. - More function comments - Fixed some compiler warnings when compiled without partitions. - Removed setting of LEX_STRING() arguments in declaration (portability fix). - Some trivial indentation/variable name changes. - Some trivial code simplifications: - Replaced some calls to alloc_root + memcpy to use strmake_root()/strdup_root(). - Changed some calls from memdup() to strmake() (Safety fix) - Simpler loops in client-simple.c
* Added more descriptive error message of why statement was automaticly droppedmonty@mysql.com/narttu.mysql.fi2007-04-131-1/+1
| | | | | | Print information if net_clear() skipped bytes (As this otherwise hides critical timeing bugs) Added DBUG_ASSERT if we get packets out of order mysql_change_user() could on error send multiple packets, which caused mysql_client_test to randomly fail
* my_strtoll10-x86.s:kent@mysql.com/kent-amd64.(none)2006-12-311-1/+1
| | | | | | | | | | | | | | | | | | | | | Corrected spelling in copyright text Makefile.am: Don't update the files from BitKeeper Many files: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header Many files: Added GPL copyright text Removed files: Docs/Support/colspec-fix.pl Docs/Support/docbook-fixup.pl Docs/Support/docbook-prefix.pl Docs/Support/docbook-split Docs/Support/make-docbook Docs/Support/make-makefile Docs/Support/test-make-manual Docs/Support/test-make-manual-de Docs/Support/xwf
* Many files:kent@mysql.com/kent-amd64.(none)2006-12-231-2/+1
| | | | Changed header to GPL version 2 only
* Fixed Bug#7838, "pipe_sig_handler should be static".jani@ua141d10.elisa.omakaista.fi2005-02-171-2/+2
|
* merge with 4.1monty@mysql.com2004-10-291-1/+2
|\
| * Fix compiler warnings (detected by Intel's C++ compiler)monty@mysql.com2004-10-221-1/+1
| | | | | | | | Fixed checking of privilege handling in CREATE ... SELECT (Bug #6094)
| * A fix and test case for Bug#5315 "mysql_change_user() doesn't freekonstantin@mysql.com2004-09-221-0/+1
| | | | | | | | prepared statements."
* | Merge with 4.1monty@mysql.com2004-09-061-1/+1
|\ \ | |/ | | | | | | (Includes merge of arena code in 4.1 and 5.0)
| * Fix for BUG#5038 "Cannot disable LOAD DATA LOCAL INFILE from client"guilhem@mysql.com2004-08-171-1/+1
| | | | | | | | | | | | (specific to 4.1): don't put CLIENT_LOCAL_FILES in CLIENT_CAPABILITIES; it would make mysql_options(CLIENT_LOCAL_FILES,0) have no effect.
* | Fixes for MSVC++ compiler.konstantin@mysql.com2004-07-191-1/+1
|/
* Fix VC++ compiler error (function redifinition) for embedded servermiguel@hegel.local2004-05-101-1/+1
|
* Portability fixesmonty@mysql.com2004-05-071-6/+0
| | | | | Change strtoll -> my_strtoll10() Fixed bug in my_strntoul() and my_strntol() where we got different values on 32 and 64 bit systems (Bug #3472)
* Simplification: MYSQL_RES *result replaced with MYSQL_DATA result;konstantin@mysql.com2004-03-281-1/+1
| | | | | | No need to check for result existence any more, store_result functions now are shorter. cli_read_binary_rows rewritten to handle MYSQL_DATA directly.
* Added LOCAL INFILE callback function support.jcole@mugatu.jcole.us2004-03-221-1/+1
|
* Intermediate commit of client library (cleanups + fixes of 3 items from konstantin@mysql.com2004-03-161-1/+0
| | | | | | | | | | | | | | | | | | | flaws list) TODO: * verify that no sequence of API calls produces SIGSEGV. That is, verify that mysql_stmt_init -> mysql_stmt_fetch is OK, or mysql_stmt_prepare -> mysql_stmt_fetch_column is OK and sets meaningful error. * remove alloc_stmt_fields call * revise stmt->state codes and statement states. * there are other items in prepared statements 'to fix' document. Done: - cleanups and comments - revision of prepared statement error codes. - mysql_stmt_prepare is now can always be called (that is, you can reprepare a statement) - new implementation of mysql_stmt_close and fetch cancellation
* fix to make client.c compile on windowskonstantin@oak.local2004-03-121-1/+0
|
* Rudimentary part of libmysql patch:konstantin@oak.local2004-03-121-0/+1
| | | | set_mysql_error is deployed
* Rename:konstantin@oak.local2004-03-101-1/+1
| | | | | read_statistic -> read_statistics (statistic is adjective)
* New call mysql_stmt_init() introduced.konstantin@mysql.com2004-03-051-1/+1
| | | | | | | | | | | | | | | | 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
* Fix for #1429 (Segfault in mysql_stmt_close)hf@deer.(none)2004-02-201-1/+1
| | | | | | | | Problem was that we checked for existing connection in stmt_close and did not free(stmt) if it's closed (that didn't work well with embedded) I just added new flag to the stmt_close and now we check it instead of connection
* Fix for #2212 (mysql_change_user doesn't work in embedded library)hf@deer.(none)2004-02-141-0/+1
| | | | now it's working
* Fix for #2126 (mysql_server_init call shouldn't be needed)hf@deer.(none)2003-12-181-0/+11
| | | | | | now mysql_server_init is called from mysql_init with fake parameters mysql_once_init code included to mysql_server_init. embedded-specific initialization is in init_embedded_server function
* Merge key cache structures to onemonty@mysql.com2003-11-201-9/+9
| | | | Fixed compiler warnings (IRIX C compiler and VC++)
* Portability fixes for windowsmonty@mashka.mysql.fi2003-10-151-3/+3
| | | | After merge fixes
* Fix for bugs #1437, #1446hf@deer.(none)2003-10-041-0/+1
|
* SCRUMhf@deer.(none)2003-09-191-0/+1
| | | | | prepared statements in embedded library. some fixes after testing
* SCRUM:hf@deer.(none)2003-09-171-0/+1
| | | | prepared statements in embedded library
* SCRUMhf@deer.(none)2003-09-171-0/+1
| | | | prepared statements in embedded library
* SCRUMhf@deer.(none)2003-09-161-2/+12
| | | | | | | | Prepared statements in embedded server Several changes in library code with two goals: to make mysql_prepare_stmt working in embedded server to get rid of #define mysql_interface_func mysql->methods->interface_func in user's interface
* SCRUM:hf@deer.(none)2003-09-121-0/+1
| | | | #977 Prepared statements in embedded library
* SCRUMhf@deer.(none)2003-09-111-0/+2
| | | | | | embedded&client library some fixes: zero at the end of the data added mysql_list_fields became 'virtual'
* Last part of resolving conflicts after pullhf@deer.(none)2003-06-181-4/+0
| | | | Some intersections with Monty encountered
* SCRUMhf@deer.(none)2003-06-171-18/+3
|\ | | | | | | | | merged conflicts about my previous commit it seems there are some errors left - gonna check...
| * Fix for compilation error.hf@deer.(none)2003-06-161-1/+1
| | | | | | | | | | Compiler can signal error when init_sigpipe_variables expands as empty place. Had to remove all semicolons after init_sigpipe_variables
| * Cleanup after split of libmysql.c to client.c and libmysql.c. A 4.1 ↵monty@narttu.mysql.fi2003-06-141-21/+4
| | | | | | | | | | | | | | | | master/slave will now use the 4.1 protocol Fixed wrong value for SQLSTATE_LENGTH Added CLIENT_REMEMBER_OPTIONS to mysql_real_connect() Changed mysql_port and mysql_unix_port to mysqld_xxxx
* | SCRUMhf@deer.(none)2003-06-171-2/+6
|/ | | | | | | | client capabilities included into libmysqld some API methods became "virtual" lots of duplicated code removed IMHO all the above made library's code way more pleasant to look at, didn't it?
* SCRUM:hf@deer.(none)2003-06-031-3/+0
| | | | splittiln common client's parts
* SCRUM:hf@deer.(none)2003-05-311-0/+61
Here is another pack of changes about gathering common client code in sql-common/client.c. Now i symlink the client.c from sql/ and libmysql/. These directories have client_settings.h files to be included to client.c. It contains defines and declarations to compile client.c in appropriate manner. Also i've added include/sql_common.h, containing declarations of what is exported from client.c I removed as many #ifdef-s from client.c as i dared to. I think it's better push it with some extra #ifdef-s now (of course, if everythihg besides it is ok) so other people can check the code.