~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/sql_plugin.cc

Merging trunk changes from over weekend.

Show diffs side-by-side

added added

removed removed

Lines of Context:
245
245
}
246
246
 
247
247
 
248
 
static int item_val_int(struct st_mysql_value *value, long long *buf)
 
248
static int item_val_int(struct st_mysql_value *value, int64_t *buf)
249
249
{
250
250
  Item *item= ((st_item_value_holder*)value)->item;
251
251
  *buf= item->val_int();
1527
1527
  char buff[STRING_BUFFER_USUAL_SIZE];
1528
1528
  const char *strvalue= "NULL", *str;
1529
1529
  int result, length;
1530
 
  long long tmp;
 
1530
  int64_t tmp;
1531
1531
 
1532
1532
  if (value->value_type(value) == MYSQL_VALUE_TYPE_STRING)
1533
1533
  {
1564
1564
                          void *save, st_mysql_value *value)
1565
1565
{
1566
1566
  my_bool fixed;
1567
 
  long long tmp;
 
1567
  int64_t tmp;
1568
1568
  struct my_option options;
1569
1569
  value->val_int(value, &tmp);
1570
1570
  plugin_opt_set_limits(&options, var);
1584
1584
                          void *save, st_mysql_value *value)
1585
1585
{
1586
1586
  my_bool fixed;
1587
 
  long long tmp;
 
1587
  int64_t tmp;
1588
1588
  struct my_option options;
1589
1589
  value->val_int(value, &tmp);
1590
1590
  plugin_opt_set_limits(&options, var);
1604
1604
                               void *save, st_mysql_value *value)
1605
1605
{
1606
1606
  my_bool fixed;
1607
 
  long long tmp;
 
1607
  int64_t tmp;
1608
1608
  struct my_option options;
1609
1609
  value->val_int(value, &tmp);
1610
1610
  plugin_opt_set_limits(&options, var);
1640
1640
  char buff[STRING_BUFFER_USUAL_SIZE];
1641
1641
  const char *strvalue= "NULL", *str;
1642
1642
  TYPELIB *typelib;
1643
 
  long long tmp;
 
1643
  int64_t tmp;
1644
1644
  long result;
1645
1645
  int length;
1646
1646
 
1712
1712
  }
1713
1713
  else
1714
1714
  {
1715
 
    if (value->val_int(value, (long long *)&result))
 
1715
    if (value->val_int(value, (int64_t *)&result))
1716
1716
      goto err;
1717
1717
    if (unlikely((result >= (ULL(1) << typelib->count)) &&
1718
1718
                 (typelib->count < sizeof(long)*8)))