Commit 02fd65b9 authored by monty@donna.mysql.com's avatar monty@donna.mysql.com
Browse files

Fixed indention, removed compiler varnings and fixed a bug

in FULLTEXT indexes.
parent 17dec8ea
Loading
Loading
Loading
Loading
+47 −62
Original line number Diff line number Diff line
@@ -163,18 +163,18 @@ General Information About MySQL
* General-SQL::                 General SQL information and tutorials
* Useful Links::                Useful @strong{MySQL}-related links
About this manual
About This Manual
* Manual conventions::          Conventions used in this manual
MySQL mailing lists
MySQL Mailing Lists
* Mailing-list::                The @strong{MySQL} mailing lists
* Asking questions::            Asking questions or reporting bugs
* Bug reports::                 How to report bugs or problems
* Answering questions::         Guidelines for answering questions on the mailing list
MySQL licensing and support
MySQL Licensing and Support
* Licensing policy::            @strong{MySQL} licensing policy
* Copyright::                   Copyrights used by @strong{MySQL}
@@ -182,22 +182,22 @@ MySQL licensing and support
* Cost::                        @strong{MySQL} licensing and support costs
* Support::                     Types of commercial support
Copyrights used by MySQL
Copyrights Used by MySQL
* Copyright changes::           Possible future copyright changes
Example licensing situations
Example Licensing Situations
* Products that use MySQL::     Selling products that use @strong{MySQL}
* ISP::                         ISP @strong{MySQL} services
* Web server::                  Running a web server using @strong{MySQL}.
@strong{MySQL} licensing and support costs
@strong{MySQL} Licensing and Support Costs
* Payment information::         Payment information
* Contact information::         Contact information
Types of commercial support
Types of Commercial Support
* Basic email support::         Basic email support
* Extended email support::      Extended email support
@@ -223,31 +223,31 @@ Installing MySQL
* Post-installation::           Post-installation setup and testing
* Upgrade::                     Is there anything special to do when upgrading/downgrading @strong{MySQL}?
Installing a MySQL binary distribution
Installing a MySQL Binary Distribution
* Linux-RPM::                   Linux RPM files
* Building clients::            Building client programs
* Binary install system issues::  System-specific issues
System-specific issues
System-specific Issues
* Binary notes-Linux::          Linux notes for binary distribution
* Binary notes-HP-UX::          HP-UX notes for binary distribution
Installing a MySQL source distribution
Installing a MySQL Source Distribution
* Quick install::               Quick installation overview
* Applying patches::            Applying patches
* configure options::           Typical @code{configure} options
Perl installation comments
Perl Installation Comments
* Perl installation::           Installing Perl on Unix
* ActiveState Perl::            Installing ActiveState Perl on Windows
* Windows Perl::                Installing the @strong{MySQL} Perl distribution on Windows
* Perl support problems::       Problems using the Perl @code{DBI}/@code{DBD} interface
System-specific issues
System-specific Issues
* Solaris::                     Solaris notes
* Solaris 2.7::                 Solaris 2.7 / 2.8 notes
@@ -269,7 +269,7 @@ System-specific issues
* Mac OS X::                    Mac OS X notes
* BEOS::                        
Linux notes (all Linux versions)
Linux Notes (All Linux Versions)
* Linux-x86::                   Linux-x86 notes
* Linux-RedHat50::              RedHat 5.0 notes
@@ -280,13 +280,13 @@ Linux notes (all Linux versions)
* Qube2::                       Qube2 Linux notes
* Linux-Ia64::                  
BSD/OS notes
BSD/OS Notes
* BSDI2::                       BSD/OS 2.x notes
* BSDI3::                       BSD/OS 3.x notes
* BSDI4::                       BSD/OS 4.x notes
Windows notes
Windows Notes
* Windows installation::        Installing @strong{MySQL} on Windows
* Win95 start::                 Starting @strong{MySQL} on Win95 / Win98
@@ -298,7 +298,7 @@ Windows notes
* Windows and BDB tables.::     
* Windows vs Unix::             @strong{MySQL}-Windows compared to Unix @strong{MySQL}
Post-installation setup and testing
Post-installation Setup and Testing
* mysql_install_db::            Problems running @code{mysql_install_db}
* Starting server::             Problems starting the @strong{MySQL} server
@@ -368,10 +368,10 @@ MySQL language reference
* DROP TABLE::                  @code{DROP TABLE} syntax
* OPTIMIZE TABLE::              @code{OPTIMIZE TABLE} syntax
* CHECK TABLE::                 @code{CHECK TABLE} syntax
* ANALYZE TABLE::               @code{ANALYZE TABLE} syntax
* REPAIR TABLE::                @code{REPAIR TABLE} syntax
* BACKUP TABLE::                @code{BACKUP TABLE} syntax
* RESTORE TABLE::               @code{RESTORE TABLE} syntax
* ANALYZE TABLE::               @code{ANALYZE TABLE} syntax
* REPAIR TABLE::                @code{REPAIR TABLE} syntax
* DELETE::                      @code{DELETE} syntax
* SELECT::                      @code{SELECT} syntax
* JOIN::                        @code{JOIN} syntax
@@ -465,7 +465,7 @@ Functions for use in @code{SELECT} and @code{WHERE} clauses
MySQL table types
* MyISAM::                      MyISAM tables
* MERGE::                       MERGE tables
* MERGE::                       
* ISAM::                        ISAM tables
* HEAP::                        HEAP tables
* BDB::                         BDB or Berkeley_db tables
@@ -544,7 +544,7 @@ Replication in MySQL
* Replication Features::        Replication Features
* Replication Options::         Replication Options in my.cnf
* Replication SQL::             SQL Commands related to replication
* Replication FAQ::             Frequently asked questions about replication
* Replication FAQ::             Frequently Asked Questions about replication
Getting maximum performance from MySQL
@@ -581,7 +581,7 @@ Speed of queries that access or update data
* Estimating performance::      Estimating query performance
* SELECT speed::                Speed of @code{SELECT} queries
* Where optimizations::         How MySQL optimizes @code{WHERE} clauses
* LEFT JOIN optimization::      How MySQL optimizes @code{LEFT JOIN} and @code{RIGHT JOIN}
* LEFT JOIN optimization::      How MySQL optimizes @code{LEFT JOIN}
* LIMIT optimization::          How MySQL optimizes @code{LIMIT}
* Insert speed::                Speed of @code{INSERT} queries
* Update speed::                Speed of @code{UPDATE} queries
@@ -812,6 +812,7 @@ MySQL change history
Changes in release 3.23.x  (Recommended; beta)
* News-3.23.26::                Changes in release 3.23.26
* News-3.23.25::                Changes in release 3.23.25
* News-3.23.24::                Changes in release 3.23.24
* News-3.23.23::                Changes in release 3.23.23
@@ -939,7 +940,7 @@ Changes in release 3.19.x
* News-3.19.4::                 Changes in release 3.19.4
* News-3.19.3::                 Changes in release 3.19.3
List of things we want to add to MySQL in the future (The TODO)
MySQL and the future (The TODO)
* TODO future::                 Things that must done in the very near future
* TODO sometime::               Things that have to be done sometime
@@ -6401,8 +6402,8 @@ table. @xref{Crashing}.
To get a core dump on Linux if mysqld dies with a SIGSEGV
signal, you can start mysqld with the @code{--core-file} option.  Note
that you also probably need to raise the @code{core file size} with
@code{ulimit}!
that you also probably need to raise the @code{core file size} by adding
@code{ulimit -c 1000000} to @code{safe_mysqld}.
If you are using LinuxThreads and @code{mysqladmin shutdown} doesn't work,
you must upgrade to LinuxThreads Version 0.7.1 or newer.
@@ -12270,10 +12271,10 @@ to restart @code{mysqld} with @code{--skip-grant-tables} to be able to run
* DROP TABLE::                  @code{DROP TABLE} syntax
* OPTIMIZE TABLE::              @code{OPTIMIZE TABLE} syntax
* CHECK TABLE::                 @code{CHECK TABLE} syntax
* ANALYZE TABLE::               @code{ANALYZE TABLE} syntax
* REPAIR TABLE::                @code{REPAIR TABLE} syntax
* BACKUP TABLE::                @code{BACKUP TABLE} syntax
* RESTORE TABLE::               @code{RESTORE TABLE} syntax
* ANALYZE TABLE::               @code{ANALYZE TABLE} syntax
* REPAIR TABLE::                @code{REPAIR TABLE} syntax
* DELETE::                      @code{DELETE} syntax
* SELECT::                      @code{SELECT} syntax
* JOIN::                        @code{JOIN} syntax
@@ -17774,6 +17775,7 @@ the @code{LIMIT} value.
@node SELECT, JOIN, DELETE, Reference
@section @code{SELECT} syntax
@c help SELECT 
@example
SELECT [STRAIGHT_JOIN] [SQL_SMALL_RESULT] [SQL_BIG_RESULT] [SQL_BUFFER_RESULT]
       [HIGH_PRIORITY]
@@ -17788,6 +17790,7 @@ SELECT [STRAIGHT_JOIN] [SQL_SMALL_RESULT] [SQL_BIG_RESULT] [SQL_BUFFER_RESULT]
        [LIMIT [offset,] rows]
        [PROCEDURE procedure_name] ]
@end example
@c help end
@code{SELECT} is used to retrieve rows selected from one or more tables.
@code{select_expression} indicates the columns you want to retrieve.
@@ -36153,7 +36156,6 @@ The twz driver: A type 4 JDBC driver by Terrence W. Zellers
private and educational use. (not supported anymore)
@c no answer from server 990830
@c You can always find the latest driver at @uref{http://www.voicenet.com/~zellert/tjFM/}.
@item
@item @uref{http://www.mysql.com/Downloads/Contrib/pmdamysql.tgz,pmdamysql.tgz}
A @strong{MySQL} PMDA. Provides @strong{MySQL} server status and configuration
variables.
@@ -36255,6 +36257,11 @@ By Terry Jones
@item @uref{http://www.mysql.com/Downloads/Contrib/eiffel-wrapper-1.0.tar.gz,eiffel-wrapper-1.0.tar.gz}.
Eiffel wrapper by Michael Ravits.
@item @uref{http://www.mysql.com/Downloads/Contrib/SQLmy0.06.tgz,SQLmy0.06.tgz}.
FlagShip Replaceable Database Driver (RDD) for MySQL. By Alejandro
Fernandez Herrero.
@uref{http://www.fship.com/rdds.html, Flagship RDD home page}
@end itemize
@appendixsec  Clients
@@ -36698,7 +36705,6 @@ Previous versions of things found here that you probably won't be
interested in.
@end itemize
@page
@node Credits, News, Contrib, Top
@appendix Contributors to MySQL
@@ -36987,16 +36993,6 @@ ODBC and VisualC++ interface questions.
@strong{MySQL} server.
@end table
@c we don't want the entire change history in the nusphere manual
@ifset nusphere
@node News, Bugs, Credits, Top
@appendix MySQL change history
The MySQL change history can be found in the latest version of the mysql
manual at @url{http://www.mysql.com/documentation/manual/}
@end ifset
@ifclear nusphere
@node News, Bugs, Credits, Top
@appendix MySQL change history
@@ -37031,6 +37027,7 @@ version. The replication and BerkeleyDB code is still under development,
though, so 3.23 is not released as a stable version yet.
@menu
* News-3.23.26::                Changes in release 3.23.26
* News-3.23.25::                Changes in release 3.23.25
* News-3.23.24::                Changes in release 3.23.24
* News-3.23.23::                Changes in release 3.23.23
@@ -37059,7 +37056,16 @@ though, so 3.23 is not released as a stable version yet.
* News-3.23.0::                 Changes in release 3.23.0
@end menu
@node News-3.23.25, News-3.23.24, News-3.23.x, News-3.23.x
@node News-3.23.26, News-3.23.25, News-3.23.x, News-3.23.x
@appendixsubsec Changes in release 3.23.26
@itemize @bullet
@item
Fixed bug in @code{FULLTEXT} index when inserting a NULL column.
@item
Changed to use @code{mkstemp()} instead of @code{tempnam()}.
@end itemize
@node News-3.23.25, News-3.23.24, News-3.23.26, News-3.23.x
@appendixsubsec Changes in release 3.23.25
@itemize @bullet
@item
@@ -41195,7 +41201,6 @@ fields, the @code{BLOB} was garbage on output.
@item
Fixed @code{DISTINCT} with calculated columns.
@end itemize
@end ifclear
@node Bugs, TODO, News, Top
@appendix Known errors and design deficiencies in MySQL
@@ -42555,15 +42560,6 @@ All new development is concentrated to @strong{MySQL}.
@page
@c This node name is special
@ifset nusphere
@node GPL license, LGPL license, Unireg, Top
@appendix GNU General Public License
The GPL License can be found at ...
@end ifset
@ifclear nusphere
@node GPL license, LGPL license, Unireg, Top
@appendix GNU General Public License
@@ -42909,19 +42905,9 @@ library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
@end example
@end ifclear
@page
@ifset nusphere
@node LGPL license, Function Index, GPL license, Top
@appendix GNU Library General Public License
The LGPL License can be found at ...
@end ifset
@ifclear nusphere
@node LGPL license, Function Index, GPL license, Top
@appendix GNU Library General Public License
@@ -43408,7 +43394,6 @@ necessary. Here is a sample; alter the names:
That's all there is to it!
@end example
@end ifclear
@node Function Index, Concept Index, LGPL license, Top
@unnumbered SQL command, type and function index
+1 −0
Original line number Diff line number Diff line
@@ -62,6 +62,7 @@ char *argv[];
  HP_KEYSEG keyseg[MAX_KEYS*5];
  HEAP_PTR position;
  MY_INIT(argv[0]);		/* init my_sys library & pthreads */
  LINT_INIT(position);

  filename= "test2";
  filename2= "test2_2";
+9 −9
Original line number Diff line number Diff line
@@ -574,9 +574,9 @@ static int compress(MRG_INFO *mrg,char *result_table)
  end_file_buffer();

  if (verbose && mrg->records)
    printf("Min record length: %6d   Max length: %6d   Mean total length: %6d\n",
    printf("Min record length: %6d   Max length: %6d   Mean total length: %6lu\n",
	   mrg->min_pack_length,mrg->max_pack_length,
	   (long) new_length/mrg->records);
	   (ulong) new_length/mrg->records);

  if (!test_only)
  {
@@ -763,11 +763,11 @@ static int get_statistic(MRG_INFO *mrg,HUFF_COUNTS *huff_counts)
	{
	  global_count=count;
	  if (!(element=tree_insert(&count->int_tree,pos,0)) ||
	      element->count == 1 &&
	      (element->count == 1 &&
	       count->tree_buff + tree_buff_length <
	       count->tree_pos + count->field_length ||
	       count->field_length == 1 &&
	      count->int_tree.elements_in_tree > 1)
	       count->int_tree.elements_in_tree > 1))
	  {
	    delete_tree(&count->int_tree);
	    my_free(count->tree_buff,MYF(0));
@@ -1760,8 +1760,8 @@ static int compress_isam_file(MRG_INFO *mrg, HUFF_COUNTS *huff_counts)
	if (max_record_length >= max_allowed_length)
	{
	  fprintf(stderr,
		  "Error: Found record with packed-length: %d, max is: %d\n",
		  max_record_length,max_allowed_length);
		  "Error: Found record with packed-length: %d, max is: %lu\n",
		  max_record_length, (ulong) max_allowed_length);
	  error=1;
	  break;
	}
+4 −6
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ int nisam_update(register N_INFO *info, const byte *oldrec, const byte *newrec)
  uchar old_key[N_MAX_KEY_BUFF],*new_key;
  DBUG_ENTER("nisam_update");

  LINT_INIT(save_errno);
  if (!(info->update & HA_STATE_AKTIV))
  {
    my_errno=HA_ERR_KEY_NOT_FOUND;
@@ -54,7 +55,7 @@ int nisam_update(register N_INFO *info, const byte *oldrec, const byte *newrec)
      info->s->base.max_key_file_length -
      info->s->blocksize* INDEX_BLOCK_MARGIN *info->s->state.keys)
  {
    my_errno=HA_ERR_INDEX_FILE_FULL;
    save_errno=HA_ERR_INDEX_FILE_FULL;
    goto err_end;
  }

@@ -108,12 +109,9 @@ int nisam_update(register N_INFO *info, const byte *oldrec, const byte *newrec)
  info->update= (HA_STATE_CHANGED | HA_STATE_ROW_CHANGED | HA_STATE_AKTIV |
		 key_changed);
 err_end:
  nisam_log_record(LOG_UPDATE,info,newrec,info->lastpos,my_errno);
  nisam_log_record(LOG_UPDATE,info,newrec,info->lastpos,save_errno);
  VOID(_nisam_writeinfo(info,1));
  allow_break();				/* Allow SIGHUP & SIGINT */
  if (save_errno == HA_ERR_KEY_NOT_FOUND)
    my_errno=HA_ERR_CRASHED;
  else
    my_errno=save_errno;
  my_errno=(save_errno == HA_ERR_KEY_NOT_FOUND) ? HA_ERR_CRASHED : save_errno;
  DBUG_RETURN(-1);
} /* nisam_update */
+1 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ FT_WORD * ft_linearize(MI_INFO *info, uint keynr, byte *keybuf, TREE *wtree)
  }
  delete_tree(wtree);
  my_free((char*) wtree,MYF(0));
  if (wlist==NULL)
  if (!wlist)
    return NULL;

  docstat.list->pos=NULL;
Loading