mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
Import branches/innodb+ from SVN on top of storage/innobase.
This commit is contained in:
commit
c877ff39bc
165 changed files with 13060 additions and 2981 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/*****************************************************************************
|
||||
|
||||
Copyright (c) 1996, 2009, Innobase Oy. All Rights Reserved.
|
||||
Copyright (c) 1996, 2010, Innobase Oy. All Rights Reserved.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU General Public License as published by the Free Software
|
||||
|
|
@ -2030,6 +2030,29 @@ pars_info_add_int4_literal(
|
|||
/****************************************************************//**
|
||||
Equivalent to:
|
||||
|
||||
char buf[8];
|
||||
mach_write_ull(buf, val);
|
||||
pars_info_add_literal(info, name, buf, 8, DATA_INT, 0);
|
||||
|
||||
except that the buffer is dynamically allocated from the info struct's
|
||||
heap. */
|
||||
UNIV_INTERN
|
||||
void
|
||||
pars_info_add_uint64_literal(
|
||||
/*=========================*/
|
||||
pars_info_t* info, /*!< in: info struct */
|
||||
const char* name, /*!< in: name */
|
||||
ib_uint64_t val) /*!< in: value */
|
||||
{
|
||||
byte* buf = mem_heap_alloc(info->heap, 8);
|
||||
|
||||
mach_write_ull(buf, val);
|
||||
pars_info_add_literal(info, name, buf, 8, DATA_INT, 0);
|
||||
}
|
||||
|
||||
/****************************************************************//**
|
||||
Equivalent to:
|
||||
|
||||
char buf[8];
|
||||
mach_write_to_8(buf, val);
|
||||
pars_info_add_literal(info, name, buf, 8, DATA_FIXBINARY, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue