diff options
author | unknown <msvensson@neptunus.(none)> | 2005-04-27 11:25:08 +0200 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2005-04-27 11:25:08 +0200 |
commit | 072fa90d9e7f5ac4df1fb42054b906b872497113 (patch) | |
tree | ffe13a13497b747762b2e275e63a444e442611a6 /sql/examples | |
parent | 9e7028c8e0708877fa802a1b589f695d78ccd1ea (diff) | |
download | mariadb-git-072fa90d9e7f5ac4df1fb42054b906b872497113.tar.gz |
BUG#9714 libsupc++ problem
- Remove linking of libsupc++
- Move all local static variables to filescope
configure.in:
Remove linking with libsupc++
sql/examples/ha_archive.cc:
Move local static variables to file scope
sql/examples/ha_example.cc:
Move local static variables to file scope
sql/examples/ha_tina.cc:
Move local static variables to file scope
sql/ha_berkeley.cc:
Move local static variables to file scope
sql/ha_blackhole.cc:
Move local static variables to file scope
sql/ha_federated.cc:
Move local static variables to file scope
sql/ha_heap.cc:
Move local static variables to file scope
sql/ha_innodb.cc:
Move local static variables to file scope
sql/ha_myisam.cc:
Move local static variables to file scope
sql/ha_myisammrg.cc:
Move local static variables to file scope
sql/ha_ndbcluster.cc:
Move local static variables to file scope
sql/item.cc:
Move local static instance variables to file scope
sql/item_sum.cc:
Move local static variables to file scope
Diffstat (limited to 'sql/examples')
-rw-r--r-- | sql/examples/ha_archive.cc | 13 | ||||
-rw-r--r-- | sql/examples/ha_example.cc | 8 | ||||
-rw-r--r-- | sql/examples/ha_tina.cc | 9 |
3 files changed, 26 insertions, 4 deletions
diff --git a/sql/examples/ha_archive.cc b/sql/examples/ha_archive.cc index a88bfc0391b..231031c9834 100644 --- a/sql/examples/ha_archive.cc +++ b/sql/examples/ha_archive.cc @@ -431,11 +431,20 @@ int ha_archive::free_share(ARCHIVE_SHARE *share) } -/* +/* We just implement one additional file extension. */ +static const char *ha_archive_exts[] = { + ARZ, + ARN, + ARM, + NullS +}; + const char **ha_archive::bas_ext() const -{ static const char *ext[]= { ARZ, ARN, ARM, NullS }; return ext; } +{ + return ha_archive_exts; +} /* diff --git a/sql/examples/ha_example.cc b/sql/examples/ha_example.cc index d043a66e71a..562b51878bf 100644 --- a/sql/examples/ha_example.cc +++ b/sql/examples/ha_example.cc @@ -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 delete_table method in handler.cc. */ +static const char *ha_example_exts[] = { + NullS +}; + const char **ha_example::bas_ext() const -{ static const char *ext[]= { NullS }; return ext; } +{ + return ha_example_exts; +} /* diff --git a/sql/examples/ha_tina.cc b/sql/examples/ha_tina.cc index b515932d25f..9ac446587ec 100644 --- a/sql/examples/ha_tina.cc +++ b/sql/examples/ha_tina.cc @@ -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 extensions exist for this handler. */ +static const char *ha_tina_exts[] = { + ".CSV", + NullS +}; + const char **ha_tina::bas_ext() const -{ static const char *ext[]= { ".CSV", NullS }; return ext; } +{ + return ha_tina_exts; +} /* |