MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
myrg_range.c
1
/* Copyright (C) 2002, 2004 MySQL AB
2
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; version 2 of the License.
6
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
GNU General Public License for more details.
11
12
You should have received a copy of the GNU General Public License
13
along with this program; if not, write to the Free Software
14
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
15
16
#include "myrg_def.h"
17
18
ha_rows myrg_records_in_range(
MYRG_INFO
*info,
int
inx,
19
key_range
*min_key,
key_range
*max_key)
20
{
21
ha_rows records=0, res;
22
MYRG_TABLE
*
table
;
23
24
for
(table=info->open_tables ; table != info->end_table ; table++)
25
{
26
res= mi_records_in_range(table->table, inx, min_key, max_key);
27
if
(res == HA_POS_ERROR)
28
return
HA_POS_ERROR;
29
if
(records > HA_POS_ERROR - res)
30
return
HA_POS_ERROR-1;
31
records+=res;
32
}
33
return
records;
34
}
35
storage
myisammrg
myrg_range.c
Generated on Sat Nov 9 2013 01:26:45 for MySQL 5.6.14 Source Code Document by
1.8.1.2