Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
2627475a
Commit
2627475a
authored
Apr 27, 2005
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge neptunus.(none):/home/msvensson/mysql/bug9714
into neptunus.(none):/home/msvensson/mysql/mysql-5.0
parents
36c1766f
c12ee8dc
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
103 additions
and
63 deletions
+103
-63
configure.in
configure.in
+9
-29
sql/examples/ha_archive.cc
sql/examples/ha_archive.cc
+11
-2
sql/examples/ha_example.cc
sql/examples/ha_example.cc
+7
-1
sql/examples/ha_tina.cc
sql/examples/ha_tina.cc
+8
-1
sql/ha_berkeley.cc
sql/ha_berkeley.cc
+7
-2
sql/ha_blackhole.cc
sql/ha_blackhole.cc
+6
-3
sql/ha_federated.cc
sql/ha_federated.cc
+4
-5
sql/ha_heap.cc
sql/ha_heap.cc
+6
-1
sql/ha_innodb.cc
sql/ha_innodb.cc
+6
-3
sql/ha_myisam.cc
sql/ha_myisam.cc
+9
-1
sql/ha_myisammrg.cc
sql/ha_myisammrg.cc
+9
-1
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+7
-2
sql/item.cc
sql/item.cc
+6
-6
sql/item_sum.cc
sql/item_sum.cc
+8
-6
No files found.
configure.in
View file @
2627475a
...
@@ -336,7 +336,7 @@ AC_SUBST(LD)
...
@@ -336,7 +336,7 @@ AC_SUBST(LD)
AC_SUBST
(
INSTALL_SCRIPT
)
AC_SUBST
(
INSTALL_SCRIPT
)
export
CC CXX CFLAGS LD LDFLAGS AR
export
CC CXX CFLAGS LD LDFLAGS AR
echo
"GXX:
$GXX
"
if
test
"
$GXX
"
=
"yes"
if
test
"
$GXX
"
=
"yes"
then
then
# mysqld requires -fno-implicit-templates.
# mysqld requires -fno-implicit-templates.
...
@@ -344,36 +344,16 @@ then
...
@@ -344,36 +344,16 @@ then
# mysqld doesn't use run-time-type-checking, so we disable it.
# mysqld doesn't use run-time-type-checking, so we disable it.
CXXFLAGS
=
"
$CXXFLAGS
-fno-implicit-templates -fno-exceptions -fno-rtti"
CXXFLAGS
=
"
$CXXFLAGS
-fno-implicit-templates -fno-exceptions -fno-rtti"
#CXX_VERNO=`echo $CXX_VERSION | sed -e 's/[[^0-9. ]]//g; s/^ *//g; s/ .*//g'`
echo
"CXX:
$CXX
"
if
echo
$CXX
|
grep
gcc
>
/dev/null 2>&1
then
echo
"Setting CXXFLAGS"
# If you are using 'gcc' 3.0 (not g++) to compile C++ programs on Linux,
# If you are using 'gcc' 3.0 (not g++) to compile C++ programs on Linux,
# we will gets some problems when linking static programs.
# we will gets some problems when linking static programs.
# The following code is used to fix this problem.
# The following code is used to fix this problem.
if
echo
$CXX
|
grep
gcc
>
/dev/null 2>&1
then
GCC_VERSION
=
`
gcc
-v
2>&1 |
grep
version |
sed
-e
's/[[^0-9. ]]//g; s/^ *//g; s/ .*//g'
`
case
$SYSTEM_TYPE
in
*
freebsd
*
)
# The libsupc++ library on freebsd with gcc 3.4.2 is dependent on
# libstdc++, disable it since other solution works fine
GCC_VERSION
=
"NOSUPCPP_
$GCC_VERSION
"
;;
*
)
;;
esac
echo
"Using gcc version '
$GCC_VERSION
'"
case
"
$GCC_VERSION
"
in
3.4.
*
|
3.5.
*
)
# Statically link the language support function's found in libsupc++.a
LIBS
=
"
$LIBS
-lsupc++"
echo
"Using -libsupc++ for static linking with gcc"
;;
*
)
# Using -lsupc++ doesn't work in gcc 3.3 on SuSE 9.2
# (causes link failures when linking things staticly)
CXXFLAGS
=
"
$CXXFLAGS
-DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL"
CXXFLAGS
=
"
$CXXFLAGS
-DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL"
echo
"Using MYSYS_NEW for static linking with gcc"
echo
"Using MYSYS_NEW for static linking with gcc"
;;
esac
fi
fi
fi
fi
...
...
sql/examples/ha_archive.cc
View file @
2627475a
...
@@ -434,8 +434,17 @@ int ha_archive::free_share(ARCHIVE_SHARE *share)
...
@@ -434,8 +434,17 @@ int ha_archive::free_share(ARCHIVE_SHARE *share)
/*
/*
We just implement one additional file extension.
We just implement one additional file extension.
*/
*/
static
const
char
*
ha_archive_exts
[]
=
{
ARZ
,
ARN
,
ARM
,
NullS
};
const
char
**
ha_archive
::
bas_ext
()
const
const
char
**
ha_archive
::
bas_ext
()
const
{
static
const
char
*
ext
[]
=
{
ARZ
,
ARN
,
ARM
,
NullS
};
return
ext
;
}
{
return
ha_archive_exts
;
}
/*
/*
...
...
sql/examples/ha_example.cc
View file @
2627475a
...
@@ -186,8 +186,14 @@ static int free_share(EXAMPLE_SHARE *share)
...
@@ -186,8 +186,14 @@ static int free_share(EXAMPLE_SHARE *share)
exist for the storage engine. This is also used by the default rename_table and
exist for the storage engine. This is also used by the default rename_table and
delete_table method in handler.cc.
delete_table method in handler.cc.
*/
*/
static
const
char
*
ha_example_exts
[]
=
{
NullS
};
const
char
**
ha_example
::
bas_ext
()
const
const
char
**
ha_example
::
bas_ext
()
const
{
static
const
char
*
ext
[]
=
{
NullS
};
return
ext
;
}
{
return
ha_example_exts
;
}
/*
/*
...
...
sql/examples/ha_tina.cc
View file @
2627475a
...
@@ -384,8 +384,15 @@ int ha_tina::find_current_row(byte *buf)
...
@@ -384,8 +384,15 @@ int ha_tina::find_current_row(byte *buf)
If frm_error() is called in table.cc this is called to find out what file
If frm_error() is called in table.cc this is called to find out what file
extensions exist for this handler.
extensions exist for this handler.
*/
*/
static
const
char
*
ha_tina_exts
[]
=
{
".CSV"
,
NullS
};
const
char
**
ha_tina
::
bas_ext
()
const
const
char
**
ha_tina
::
bas_ext
()
const
{
static
const
char
*
ext
[]
=
{
".CSV"
,
NullS
};
return
ext
;
}
{
return
ha_tina_exts
;
}
/*
/*
...
...
sql/ha_berkeley.cc
View file @
2627475a
...
@@ -371,10 +371,15 @@ void berkeley_cleanup_log_files(void)
...
@@ -371,10 +371,15 @@ void berkeley_cleanup_log_files(void)
/*****************************************************************************
/*****************************************************************************
** Berkeley DB tables
** Berkeley DB tables
*****************************************************************************/
*****************************************************************************/
static
const
char
*
ha_berkeley_exts
[]
=
{
ha_berkeley_ext
,
NullS
};
const
char
**
ha_berkeley
::
bas_ext
()
const
const
char
**
ha_berkeley
::
bas_ext
()
const
{
static
const
char
*
ext
[]
=
{
ha_berkeley_ext
,
NullS
};
return
ext
;
}
{
return
ha_berkeley_exts
;
}
ulong
ha_berkeley
::
index_flags
(
uint
idx
,
uint
part
,
bool
all_parts
)
const
ulong
ha_berkeley
::
index_flags
(
uint
idx
,
uint
part
,
bool
all_parts
)
const
{
{
...
...
sql/ha_blackhole.cc
View file @
2627475a
...
@@ -25,10 +25,13 @@
...
@@ -25,10 +25,13 @@
#include "ha_blackhole.h"
#include "ha_blackhole.h"
static
const
char
*
ha_black_hole_exts
[]
=
{
NullS
};
const
char
**
ha_blackhole
::
bas_ext
()
const
const
char
**
ha_blackhole
::
bas_ext
()
const
{
{
static
const
char
*
ext
[]
=
{
NullS
};
return
ha_blackhole_exts
;
return
ext
;
}
}
int
ha_blackhole
::
open
(
const
char
*
name
,
int
mode
,
uint
test_if_locked
)
int
ha_blackhole
::
open
(
const
char
*
name
,
int
mode
,
uint
test_if_locked
)
...
...
sql/ha_federated.cc
View file @
2627475a
...
@@ -941,14 +941,13 @@ static int free_share(FEDERATED_SHARE *share)
...
@@ -941,14 +941,13 @@ static int free_share(FEDERATED_SHARE *share)
also used by the default rename_table and delete_table method
also used by the default rename_table and delete_table method
in handler.cc.
in handler.cc.
*/
*/
static
const
char
*
ha_federated_exts
[]
=
{
NullS
};
const
char
**
ha_federated
::
bas_ext
()
const
const
char
**
ha_federated
::
bas_ext
()
const
{
{
static
const
char
*
ext
[]
=
return
ha_federated_exts
;
{
NullS
};
return
ext
;
}
}
...
...
sql/ha_heap.cc
View file @
2627475a
...
@@ -26,9 +26,14 @@
...
@@ -26,9 +26,14 @@
/*****************************************************************************
/*****************************************************************************
** HEAP tables
** HEAP tables
*****************************************************************************/
*****************************************************************************/
static
const
char
*
ha_heap_exts
[]
=
{
NullS
};
const
char
**
ha_heap
::
bas_ext
()
const
const
char
**
ha_heap
::
bas_ext
()
const
{
static
const
char
*
ext
[
1
]
=
{
NullS
};
return
ext
;
}
{
return
ha_heap_exts
;
}
/*
/*
Hash index statistics is updated (copied from HP_KEYDEF::hash_buckets to
Hash index statistics is updated (copied from HP_KEYDEF::hash_buckets to
...
...
sql/ha_innodb.cc
View file @
2627475a
...
@@ -2138,17 +2138,20 @@ ha_innobase::get_row_type() const
...
@@ -2138,17 +2138,20 @@ ha_innobase::get_row_type() const
/********************************************************************
/********************************************************************
Gives the file extension of an InnoDB single-table tablespace. */
Gives the file extension of an InnoDB single-table tablespace. */
static
const
char
*
ha_innobase_exts
[]
=
{
".ibd"
,
NullS
};
const
char
**
const
char
**
ha_innobase
::
bas_ext
()
const
ha_innobase
::
bas_ext
()
const
/*========================*/
/*========================*/
/* out: file extension string */
/* out: file extension string */
{
{
static
const
char
*
ext
[]
=
{
".ibd"
,
NullS
};
return
ha_innobase_exts
;
return
(
ext
);
}
}
/*********************************************************************
/*********************************************************************
Normalizes a table name string. A normalized name consists of the
Normalizes a table name string. A normalized name consists of the
database name catenated to '/' and table name. An example:
database name catenated to '/' and table name. An example:
...
...
sql/ha_myisam.cc
View file @
2627475a
...
@@ -123,8 +123,16 @@ void mi_check_print_warning(MI_CHECK *param, const char *fmt,...)
...
@@ -123,8 +123,16 @@ void mi_check_print_warning(MI_CHECK *param, const char *fmt,...)
}
}
static
const
char
*
ha_myisam_exts
[]
=
{
".MYI"
,
".MYD"
,
NullS
};
const
char
**
ha_myisam
::
bas_ext
()
const
const
char
**
ha_myisam
::
bas_ext
()
const
{
static
const
char
*
ext
[]
=
{
".MYI"
,
".MYD"
,
NullS
};
return
ext
;
}
{
return
ha_myisam_exts
;
}
const
char
*
ha_myisam
::
index_type
(
uint
key_number
)
const
char
*
ha_myisam
::
index_type
(
uint
key_number
)
...
...
sql/ha_myisammrg.cc
View file @
2627475a
...
@@ -32,8 +32,16 @@
...
@@ -32,8 +32,16 @@
** MyISAM MERGE tables
** MyISAM MERGE tables
*****************************************************************************/
*****************************************************************************/
static
const
char
*
ha_myisammrg_exts
[]
=
{
".MRG"
,
NullS
};
const
char
**
ha_myisammrg
::
bas_ext
()
const
const
char
**
ha_myisammrg
::
bas_ext
()
const
{
static
const
char
*
ext
[]
=
{
".MRG"
,
NullS
};
return
ext
;
}
{
return
ha_myisammrg_exts
;
}
const
char
*
ha_myisammrg
::
index_type
(
uint
key_number
)
const
char
*
ha_myisammrg
::
index_type
(
uint
key_number
)
{
{
...
...
sql/ha_ndbcluster.cc
View file @
2627475a
...
@@ -3074,10 +3074,15 @@ int ha_ndbcluster::extra_opt(enum ha_extra_function operation, ulong cache_size)
...
@@ -3074,10 +3074,15 @@ int ha_ndbcluster::extra_opt(enum ha_extra_function operation, ulong cache_size)
DBUG_RETURN
(
extra
(
operation
));
DBUG_RETURN
(
extra
(
operation
));
}
}
static
const
char
*
ha_ndbcluster_exts
[]
=
{
ha_ndb_ext
,
NullS
};
const
char
**
ha_ndbcluster
::
bas_ext
()
const
const
char
**
ha_ndbcluster
::
bas_ext
()
const
{
static
const
char
*
ext
[]
=
{
ha_ndb_ext
,
NullS
};
return
ext
;
}
{
return
ha_ndbcluster_exts
;
}
/*
/*
How many seeks it will take to read through the table
How many seeks it will take to read through the table
...
...
sql/item.cc
View file @
2627475a
...
@@ -43,11 +43,11 @@ void Hybrid_type_traits::fix_length_and_dec(Item *item, Item *arg) const
...
@@ -43,11 +43,11 @@ void Hybrid_type_traits::fix_length_and_dec(Item *item, Item *arg) const
item
->
max_length
=
item
->
float_length
(
arg
->
decimals
);
item
->
max_length
=
item
->
float_length
(
arg
->
decimals
);
}
}
static
const
Hybrid_type_traits
real_traits_instance
;
const
Hybrid_type_traits
*
Hybrid_type_traits
::
instance
()
const
Hybrid_type_traits
*
Hybrid_type_traits
::
instance
()
{
{
static
const
Hybrid_type_traits
real_traits
;
return
&
real_traits_instance
;
return
&
real_traits
;
}
}
...
@@ -67,11 +67,11 @@ Hybrid_type_traits::val_str(Hybrid_type *val, String *to, uint8 decimals) const
...
@@ -67,11 +67,11 @@ Hybrid_type_traits::val_str(Hybrid_type *val, String *to, uint8 decimals) const
}
}
/* Hybrid_type_traits_decimal */
/* Hybrid_type_traits_decimal */
static
const
Hybrid_type_traits_decimal
decimal_traits_instance
;
const
Hybrid_type_traits_decimal
*
Hybrid_type_traits_decimal
::
instance
()
const
Hybrid_type_traits_decimal
*
Hybrid_type_traits_decimal
::
instance
()
{
{
static
const
Hybrid_type_traits_decimal
decimal_traits
;
return
&
decimal_traits_instance
;
return
&
decimal_traits
;
}
}
...
@@ -143,11 +143,11 @@ Hybrid_type_traits_decimal::val_str(Hybrid_type *val, String *to,
...
@@ -143,11 +143,11 @@ Hybrid_type_traits_decimal::val_str(Hybrid_type *val, String *to,
}
}
/* Hybrid_type_traits_integer */
/* Hybrid_type_traits_integer */
static
const
Hybrid_type_traits_integer
integer_traits_instance
;
const
Hybrid_type_traits_integer
*
Hybrid_type_traits_integer
::
instance
()
const
Hybrid_type_traits_integer
*
Hybrid_type_traits_integer
::
instance
()
{
{
static
const
Hybrid_type_traits_integer
integer_traits
;
return
&
integer_traits_instance
;
return
&
integer_traits
;
}
}
void
void
...
...
sql/item_sum.cc
View file @
2627475a
...
@@ -506,7 +506,6 @@ Item_sum_distinct::Item_sum_distinct(THD *thd, Item_sum_distinct *original)
...
@@ -506,7 +506,6 @@ Item_sum_distinct::Item_sum_distinct(THD *thd, Item_sum_distinct *original)
This is to speedup SUM/AVG(DISTINCT) evaluation for 8-32 bit integer
This is to speedup SUM/AVG(DISTINCT) evaluation for 8-32 bit integer
values.
values.
*/
*/
struct
Hybrid_type_traits_fast_decimal
:
public
struct
Hybrid_type_traits_fast_decimal
:
public
Hybrid_type_traits_integer
Hybrid_type_traits_integer
{
{
...
@@ -521,13 +520,16 @@ struct Hybrid_type_traits_fast_decimal: public
...
@@ -521,13 +520,16 @@ struct Hybrid_type_traits_fast_decimal: public
val
->
traits
=
Hybrid_type_traits_decimal
::
instance
();
val
->
traits
=
Hybrid_type_traits_decimal
::
instance
();
val
->
traits
->
div
(
val
,
u
);
val
->
traits
->
div
(
val
,
u
);
}
}
static
const
Hybrid_type_traits_fast_decimal
*
instance
()
static
const
Hybrid_type_traits_fast_decimal
*
instance
();
{
static
const
Hybrid_type_traits_fast_decimal
fast_decimal_traits
;
return
&
fast_decimal_traits
;
}
};
};
static
const
Hybrid_type_traits_fast_decimal
fast_decimal_traits_instance
;
const
Hybrid_type_traits_fast_decimal
*
Hybrid_type_traits_fast_decimal
::
instance
()
{
return
&
fast_decimal_traits_instance
;
}
void
Item_sum_distinct
::
fix_length_and_dec
()
void
Item_sum_distinct
::
fix_length_and_dec
()
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment