summaryrefslogtreecommitdiff
path: root/sql/structs.h
Commit message (Collapse)AuthorAgeFilesLines
* WL#2935 - SHOW STATUS support in pluginsserg@serg.mylan2006-01-071-22/+1
| | | | | | | | | | | The patch adds DYNAMIC_ARRAY all_status_vars, which is now the sole source of status information for SHOW STATUS. Status variables can be added to and removed from the array dynamically. SHOW STATUS command uses this array instead of static array from mysqld.cc Compatibility with the old, global list of status variables is preserved in init_server_components(), where this global list is simply appended to all_status_vars.
* cleanup of SHOW STATUS code, as a preparation for WL#2935serg@serg.mylan2006-01-021-22/+5
| | | | | | | | (MySQL plugin interface: status variables) adding SHOW_FUNC, removing SHOW_some_specific_value, only generic SHOW_LONG/SHOW_CHAR/etc are recognized. changing to use SHOW_FUNC instead of ha_update_statistics
* Merge mysql.com:/home/my/mysql-5.1monty@mysql.com2005-11-231-2/+2
|\ | | | | | | into mysql.com:/home/my/mysql-5.1-TDC
| * Table definition cache, part 2monty@mysql.com2005-11-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The table opening process now works the following way: - Create common TABLE_SHARE object - Read the .frm file and unpack it into the TABLE_SHARE object - Create a TABLE object based on the information in the TABLE_SHARE object and open a handler to the table object Other noteworthy changes: - In TABLE_SHARE the most common strings are now LEX_STRING's - Better error message when table is not found - Variable table_cache is now renamed 'table_open_cache' - New variable 'table_definition_cache' that is the number of table defintions that will be cached - strxnmov() calls are now fixed to avoid overflows - strxnmov() will now always add one end \0 to result - engine objects are now created with a TABLE_SHARE object instead of a TABLE object. - After creating a field object one must call field->init(table) before using it - For a busy system this change will give you: - Less memory usage for table object - Faster opening of tables (if it's has been in use or is in table definition cache) - Allow you to cache many table definitions objects - Faster drop of table
* | Merge a193-229-222-105.elisa-laajakaista.fi:/home/my/bk/mysql-5.0jani@a193-229-222-105.elisa-laajakaista.fi2005-11-231-2/+0
|\ \ | |/ |/| | | into a193-229-222-105.elisa-laajakaista.fi:/home/my/bk/mysql-5.1-new
| * Inefficient usage of String::append() fixed.bell@sanja.is.com.ua2005-11-201-2/+0
| | | | | | | | | | | | | | Bad examples of usage of a string with its length fixed. The incorrect length in the trigger file configuration descriptor fixed (BUG#14090). A hook for unknown keys added to the parser to support old .TRG files.
* | Fix of crashed 5.1 tree (wrong merge + wrong pullout patch forced us to ↵monty@mysql.com2005-11-051-0/+9
|/ | | | | | create a new 5.1 tree) This is a merge of 5.0 -> 5.1 + some code from old 5.1 tree to get all tests to work and keep the .frm format the same as the old 5.1 tree.
* Merge neptunus.(none):/home/msvensson/mysql/mysql-5.0msvensson@neptunus.(none)2005-10-121-0/+1
|\ | | | | | | into neptunus.(none):/home/msvensson/mysql/ssl_test/my50-ssl_test
| * Always test ssl and compressmsvensson@neptunus.(none)2005-10-121-2/+0
| | | | | | | | - Updated after review
| * Improved testing of ssl and compressionmsvensson@neptunus.(none)2005-10-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | - Added show status variable "compression" for checking that compression is turned on. - Updated show status variable "have_openssl" to be set to DISABLED if server supports ssl but it's not turned on to accept incoming ssl connections. - Setup server to accept ssl connections from clients ig that is supported by server - New tests - ssl - Run with ssl turned on - ssl_compress - Run with ssl and compression turned on - compress - Run with compression turned in - Updated test - openssl_1, rpl_openssl1 - Changed to run if server supports ssl
* | Merge bk-internal.mysql.com:/home/bk/mysql-5.0monty@mysql.com2005-10-081-1/+1
|\ \ | |/ |/| | | into mysql.com:/home/my/mysql-5.0
| * Review of code pushed since last 5.0 pull:monty@mysql.com2005-10-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Ensure that ccache is also used for C programs mysql: Ensure that 'delimiter' works the same way in batch mode as in normal mode mysqldump: Change to use ;; (instead of //) as a stored procedure/trigger delimiter Fixed test cases by adding missing DROP's and rename views to be of type 'v#' Removed MY_UNIX_PATH from fn_format() Removed current_db_used from TABLE_LIST Removed usage of 'current_thd' in Item_splocal Removed some compiler warnings A bit faster longlong2str code
* | Merge mysql.com:/home/mydev/mysql-4.1-4100ingo@mysql.com2005-09-141-1/+1
|\ \ | |/ |/| | | into mysql.com:/home/mydev/mysql-5.0-5000
| * Bug#12920 - key_read_requests counter appears to re-setingo@mysql.com2005-09-141-1/+1
| | | | | | | | After merge fix.
* | Fix for bug#11055: information_schema: routines.sql_data_access has wrong valuegluh@eagle.intranet.mysql.r18.ru2005-06-161-0/+2
| |
* | Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.0sergefp@mysql.com2005-05-261-1/+2
|\ \ | | | | | | | | | into mysql.com:/home/psergey/mysql-5.0-conf-fixes-2
| * | Post-review fixes: rename SHOW_DOUBLE to SHOW_DOUBLE_STATUSsergefp@mysql.com2005-05-261-1/+2
| | |
* | | Add support for slave_compressed_protocol, slave_load_tmpdir, andjimw@mysql.com2005-05-071-1/+1
|/ / | | | | | | slave_skip_errors in SHOW VARIABLES. (Bug #7800)
* | merge from 4.1gbichot@quadita2.mysql.com2005-03-241-1/+1
|\ \ | |/
| * "After Monty's review" changes to the fix for BUG#8325 "Deadlock in ↵gbichot@quadita2.mysql.com2005-03-231-1/+1
| | | | | | | | | | | | | | | | | | replication thread stops replication": s/sleep/safe_sleep (thread safe); sleep 0/1/2/3/4/5/5/5 (get slave less late); no message on error log (deadlock is too common sometimes), a global counter instead (SHOW STATUS LIKE 'slave_retried_transactions'). Plus a fix for libmysql/Makefile.shared
* | Manual merge of patch implementing WL#1339 with main tree.dlenev@mysql.com2004-12-291-3/+52
|\ \
| * | WL#1339 "Add per account max_user_connections limit (maximum number dlenev@brandersnatch.localdomain2004-12-291-3/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of concurrent connections for the same account)" Added support of account specific max_user_connections limit. Made all user limits to be counted per account instead of the old behavior, which was per user/host accounting. Added option which enables the old behavior. Added testing of these to the test suite. (After review version).
* | | Merge with global treemonty@mysql.com2004-12-191-1/+1
| | | | | | | | | | | | | | | Fixed some found bugs in BIT fields Added more test cases for BIT fields and varchar
* | | Merge with new VARCHAR codemonty@mysql.com2004-12-061-0/+1
|\ \ \ | |/ / |/| |
| * | Add support for up to VARCHAR (size up to 65535)monty@mysql.com2004-12-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge mysql.com:/home/cps/mysql/trees/mysql-5.0petr@mysql.com2004-11-181-0/+1
|\ \ \ | | | | | | | | | | | | into mysql.com:/home/cps/mysql/devel/innotask/mysql-5.0-inno-final
| * | | WL 2059 Engine-specific status variables framework and WL 1922petr@mysql.com2004-11-181-0/+1
| |/ / | | | | | | | | | InnoDB status variables
* | | mergedserg@serg.mylan2004-11-171-1/+6
|\ \ \ | |/ / |/| / | |/
| * Fix for bug#5138: hash indexes on heap tables support statistics.sergefp@mysql.com2004-09-081-1/+6
| | | | | | | | KEY::rec_per_key is updated every time 1/HEAP_STATS_UPDATE_THRESHOLD part of table records has been changed.
* | Added per thread status variables, after review, patch v1.1.jani@rhols221.adsl.netsonic.fi2004-09-131-1/+2
| |
* | Merge with 4.1.3-betamonty@mysql.com2004-07-071-17/+8
|\ \ | |/
| * Fix for Bug#4030 "Client side conversion string -> date type doesn't konstantin@mysql.com2004-06-241-17/+8
| | | | | | | | | | | | | | | | | | | | 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.
* | Post-merge post-merge fix (new error codes for fparser).pem@mysql.com2004-05-141-2/+2
|\ \ | |/ |/|
| * Merge of WL#1469 with latest bk sources.timour@mysql.com2004-05-111-2/+12
| |
| * Implementation of WL#1469 (Greedy algorithm to search for an optimal ↵timour@mysql.com2004-04-161-2/+2
| | | | | | | | execution plan).
* | Merge with 4.0.19monty@mysql.com2004-05-051-1/+2
|\ \
| * | Fixed http address in some scripts (Bug #3460)monty@mysql.com2004-04-281-1/+2
| | | | | | | | | | | | | | | | | | Output TIMESTAMP in 4.1 format for 4.1 tables (or for TIMESTAMP(19)) (portability fix) Fixed that INTERVAL can handle big integers. (Bug #3498) Fixed that hostname="" works identical as hostname="%" for table/column grants (Bug #3473)
* | | WL#1700 - Properly count key_blocks_used and key_blocks_current.ingo@mysql.com2004-05-031-1/+2
| | | | | | | | | | | | | | | | | | Introduced a new free blocks list. Free blocks are now re-used before new blocks are allocated from the pool. There is a new status variable which can be queried by "show status like key_blocks_unused".
* | | Fix typo.paul@teton.kitebird.com2004-03-171-1/+1
| | |
* | | Optimized GIS functionsmonty@mashka.mysql.fi2004-03-041-1/+11
| |/ |/|
* | CLIENT_MULTI_QUERIES -> CLIENT_MULTI_STATEMENTSmonty@mashka.mysql.fi2003-11-181-1/+1
| | | | | | | | | | | | | | | | | | | | New multi-key-cache handling. This was needed becasue the old one didn't work reliable with MERGE tables. ALTER TABLE table_name ... CHARACTER SET ... now changes all char/varchar/text columns to the given character set (One must use ALTER TABLE ... DEFAULT CHARACTER SET ... to change the default character set) Fixed that have_compress is detected properly (fixes problems with func_compress.test on platforms without zlib) New syntax for CACHE INDEX ('keys' is optional if no index name is given and one mentions the key cache name only ones) Removed compiler warnings Added mysql_set_server_option() to allow clients like PHP to easaily set/reset the multi-statement flag.
* | Simplified 'wrong xxx name' error messages by introducing 'general' ↵monty@narttu.mysql.fi2003-11-031-15/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ER_WRONG_NAME error Cleaned up (and disabled part of) date/time/datetime format patch. One can't anymore change default read/write date/time/formats. This is becasue the non standard datetime formats can't be compared as strings and MySQL does still a lot of datetime comparisons as strings Changed flag argument to str_to_TIME() and get_date() from bool to uint Removed THD from str_to_xxxx functions and Item class. Fixed core dump when doing --print-defaults Move some common string functions to strfunc.cc Dates as strings are now of type my_charset_bin instead of default_charset() Introduce IDENT_QUOTED to not have to create an extra copy of simple identifiers (all chars < 128) Removed xxx_FORMAT_TYPE enums and replaced them with the old TIMESTAMP_xxx enums Renamed some TIMESTAMP_xxx enums to more appropriate names Use defines instead of integers for date/time/datetime string lengths Added to build system and use the new my_strtoll10() function.
* | Scrum task 835 - text-to-datetime conversion functiongluh@gluh.mysql.r18.ru2003-10-201-2/+7
| |
* | Many files:igor@hundin.mysql.fi2003-04-241-0/+1
| | | | | | | | | | | | Added the MAX_LENGTH_FOR_SORT_DATA option filesort.cc: Added the MAX_LENGTH_FOR_SORT_DATA option
* | Merge with 4.0.11 tree to get latest bug fixesmonty@mashka.mysql.fi2003-02-171-1/+1
|\ \ | |/
| * Fixed multi-table-delete for InnoDB tablesmonty@mashka.mysql.fi2003-02-171-1/+1
| | | | | | | | Novell patches
* | Merge with 4.0.8monty@mashka.mysql.fi2003-01-031-1/+1
|\ \ | |/
| * Changed thd variables max_join_size and select_limit to type ha_rows.monty@mashka.mysql.fi2002-12-201-1/+1
| | | | | | | | | | | | This fixed some optimization problems when using -DBIG_TABLES Portabilty fixes for OpenUnix and HPUX Added C and C++ version numbers to mysqlbug
* | rename of net_pkg.cc to protocol.ccmonty@mashka.mysql.fi2002-12-111-1/+2
| | | | | | | | | | 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.
* | Fixes and code cleanups after merge with 4.0.3monty@mashka.mysql.fi2002-10-021-22/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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