~ubuntu-branches/ubuntu/trusty/mariadb-5.5/trusty-proposed

« back to all changes in this revision

Viewing changes to sql/handler.h

  • Committer: Package Import Robot
  • Author(s): James Page, Otto Kekäläinen
  • Date: 2014-02-17 16:51:52 UTC
  • mfrom: (2.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20140217165152-k315d3175g865kkx
Tags: 5.5.35-1
[ Otto Kekäläinen ]
* New upstream release, fixing the following security issues:
  - Buffer overflow in client/mysql.cc (Closes: #737597).
    - CVE-2014-0001
  - http://www.oracle.com/technetwork/topics/security/cpujan2014-1972949.html
    - CVE-2013-5891
    - CVE-2013-5908
    - CVE-2014-0386
    - CVE-2014-0393
    - CVE-2014-0401
    - CVE-2014-0402
    - CVE-2014-0412
    - CVE-2014-0420
    - CVE-2014-0437
* Upstream https://mariadb.atlassian.net/browse/MDEV-4902
  fixes compatibility with Bison 3.0 (Closes: #733002)
* Updated Russian debconf translation (Closes: #734426)
* Updated Japanese debconf translation (Closes: #735284)
* Updated French debconf translation (Closes: #736480)
* Renamed SONAME properly (Closes: #732967)

Show diffs side-by-side

added added

removed removed

Lines of Context:
357
357
  /** Performance schema engine. */
358
358
  DB_TYPE_PERFORMANCE_SCHEMA,
359
359
  DB_TYPE_ARIA=42,
360
 
  DB_TYPE_FIRST_DYNAMIC=43,
 
360
  DB_TYPE_TOKUDB=43,
 
361
  DB_TYPE_FIRST_DYNAMIC=44,
361
362
  DB_TYPE_DEFAULT=127 // Must be last
362
363
};
363
364
/*
758
759
  HA_xOPTION_STRING(name, ha_index_option_struct, field)
759
760
#define HA_IOPTION_ENUM(name, field, values, def)                    \
760
761
  HA_xOPTION_ENUM(name, ha_index_option_struct, field, values, def)
761
 
#define HA_IOPTION_BOOL(name, field, values, def)                    \
762
 
  HA_xOPTION_BOOL(name, ha_index_option_struct, field, values, def)
 
762
#define HA_IOPTION_BOOL(name, field, def)                            \
 
763
  HA_xOPTION_BOOL(name, ha_index_option_struct, field, def)
763
764
#define HA_IOPTION_END HA_xOPTION_END
764
765
 
765
766
typedef struct st_ha_create_table_option {
1076
1077
#define HTON_TEMPORARY_NOT_SUPPORTED (1 << 6) //Having temporary tables not supported
1077
1078
#define HTON_SUPPORT_LOG_TABLES      (1 << 7) //Engine supports log tables
1078
1079
#define HTON_NO_PARTITION            (1 << 8) //You can not partition these tables
 
1080
#define HTON_EXTENDED_KEYS           (1 << 9) //supports extended keys
1079
1081
 
1080
1082
class Ha_trx_info;
1081
1083
 
1866
1868
  }
1867
1869
  /* This is called after index_init() if we need to do a index scan */
1868
1870
  virtual int prepare_index_scan() { return 0; }
 
1871
  virtual int prepare_index_key_scan_map(const uchar * key, key_part_map keypart_map)
 
1872
  {
 
1873
    uint key_len= calculate_key_len(table, active_index, key, keypart_map);
 
1874
    return  prepare_index_key_scan(key, key_len);
 
1875
  }
 
1876
  virtual int prepare_index_key_scan( const uchar * key, uint key_len )
 
1877
  { return 0; }
 
1878
  virtual int prepare_range_scan(const key_range *start_key, const key_range *end_key)
 
1879
  { return 0; }
 
1880
 
1869
1881
  int ha_rnd_init(bool scan) __attribute__ ((warn_unused_result))
1870
1882
  {
1871
1883
    DBUG_EXECUTE_IF("ha_rnd_init_fail", return HA_ERR_TABLE_DEF_CHANGED;);
2703
2715
  virtual bool check_if_supported_virtual_columns(void) { return FALSE;}
2704
2716
  
2705
2717
  TABLE* get_table() { return table; }
 
2718
  TABLE_SHARE* get_table_share() { return table_share; }
2706
2719
protected:
2707
2720
  /* deprecated, don't use in new engines */
2708
2721
  inline void ha_statistic_increment(ulong SSV::*offset) const { }
2956
2969
 
2957
2970
#include "multi_range_read.h"
2958
2971
 
2959
 
bool key_uses_partial_cols(TABLE *table, uint keyno);
 
2972
bool key_uses_partial_cols(TABLE_SHARE *table, uint keyno);
2960
2973
 
2961
2974
        /* Some extern variables used with handlers */
2962
2975