mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
pgindent run for 9.5
This commit is contained in:
@ -291,7 +291,8 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
|
||||
date ddres;
|
||||
timestamp tres;
|
||||
interval *ires;
|
||||
char *endptr, endchar;
|
||||
char *endptr,
|
||||
endchar;
|
||||
|
||||
case ECPGt_short:
|
||||
case ECPGt_int:
|
||||
|
@ -499,9 +499,9 @@ ecpg_store_input(const int lineno, const bool force_indicator, const struct vari
|
||||
char *newcopy = NULL;
|
||||
|
||||
/*
|
||||
* arrays are not possible unless the column is an array, too
|
||||
* FIXME: we do not know if the column is an array here
|
||||
* array input to singleton column will result in a runtime error
|
||||
* arrays are not possible unless the column is an array, too FIXME: we do
|
||||
* not know if the column is an array here array input to singleton column
|
||||
* will result in a runtime error
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -852,7 +852,7 @@ ecpg_store_input(const int lineno, const bool force_indicator, const struct vari
|
||||
mallocedval = ecpg_strdup("", lineno);
|
||||
|
||||
if (!mallocedval)
|
||||
return false;
|
||||
return false;
|
||||
|
||||
for (element = 0; element < asize; element++)
|
||||
{
|
||||
@ -915,7 +915,7 @@ ecpg_store_input(const int lineno, const bool force_indicator, const struct vari
|
||||
mallocedval = ecpg_strdup("", lineno);
|
||||
|
||||
if (!mallocedval)
|
||||
return false;
|
||||
return false;
|
||||
|
||||
for (element = 0; element < asize; element++)
|
||||
{
|
||||
@ -962,7 +962,7 @@ ecpg_store_input(const int lineno, const bool force_indicator, const struct vari
|
||||
mallocedval = ecpg_strdup("", lineno);
|
||||
|
||||
if (!mallocedval)
|
||||
return false;
|
||||
return false;
|
||||
|
||||
for (element = 0; element < asize; element++)
|
||||
{
|
||||
@ -1009,7 +1009,7 @@ ecpg_store_input(const int lineno, const bool force_indicator, const struct vari
|
||||
mallocedval = ecpg_strdup("", lineno);
|
||||
|
||||
if (!mallocedval)
|
||||
return false;
|
||||
return false;
|
||||
|
||||
for (element = 0; element < asize; element++)
|
||||
{
|
||||
|
@ -107,7 +107,7 @@ static struct auto_mem *auto_allocs = NULL;
|
||||
char *
|
||||
ecpg_auto_alloc(long size, int lineno)
|
||||
{
|
||||
void *ptr = (void *) ecpg_alloc(size, lineno);
|
||||
void *ptr = (void *) ecpg_alloc(size, lineno);
|
||||
|
||||
if (!ptr)
|
||||
return NULL;
|
||||
|
@ -42,17 +42,16 @@ my %replace_token = (
|
||||
|
||||
# or in the block
|
||||
my %replace_string = (
|
||||
'NOT_LA' => 'not',
|
||||
'NULLS_LA' => 'nulls',
|
||||
'WITH_LA' => 'with',
|
||||
'TYPECAST' => '::',
|
||||
'DOT_DOT' => '..',
|
||||
'COLON_EQUALS' => ':=',
|
||||
'EQUALS_GREATER' => '=>',
|
||||
'LESS_EQUALS' => '<=',
|
||||
'GREATER_EQUALS' => '>=',
|
||||
'NOT_EQUALS' => '<>',
|
||||
);
|
||||
'NOT_LA' => 'not',
|
||||
'NULLS_LA' => 'nulls',
|
||||
'WITH_LA' => 'with',
|
||||
'TYPECAST' => '::',
|
||||
'DOT_DOT' => '..',
|
||||
'COLON_EQUALS' => ':=',
|
||||
'EQUALS_GREATER' => '=>',
|
||||
'LESS_EQUALS' => '<=',
|
||||
'GREATER_EQUALS' => '>=',
|
||||
'NOT_EQUALS' => '<>',);
|
||||
|
||||
# specific replace_types for specific non-terminals - never include the ':'
|
||||
# ECPG-only replace_types are defined in ecpg-replace_types
|
||||
|
Reference in New Issue
Block a user