mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Added STRING datatype for Informix compatibility mode. This work is
based on a patch send in by Böszörményi Zoltán <zb@cybertec.at>.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.49 2009/06/11 14:49:13 momjian Exp $ */
|
||||
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.50 2009/08/07 10:51:20 meskes Exp $ */
|
||||
|
||||
#define POSTGRES_ECPG_INTERNAL
|
||||
#include "postgres_fe.h"
|
||||
@ -295,6 +295,7 @@ ECPGset_noind_null(enum ECPGttype type, void *ptr)
|
||||
{
|
||||
case ECPGt_char:
|
||||
case ECPGt_unsigned_char:
|
||||
case ECPGt_string:
|
||||
*((char *) ptr) = '\0';
|
||||
break;
|
||||
case ECPGt_short:
|
||||
@ -361,6 +362,7 @@ ECPGis_noind_null(enum ECPGttype type, void *ptr)
|
||||
{
|
||||
case ECPGt_char:
|
||||
case ECPGt_unsigned_char:
|
||||
case ECPGt_string:
|
||||
if (*((char *) ptr) == '\0')
|
||||
return true;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user