1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-21 02:52:47 +03:00

- Synced gram.y and preproc.y.

- Synced keyword.c.
        - Added several small patches from Christof.
This commit is contained in:
Michael Meskes
2000-12-18 11:33:55 +00:00
parent 97cfb9d606
commit 77145ac824
7 changed files with 65 additions and 74 deletions

View File

@@ -236,12 +236,16 @@ get_data(PGresult *results, int act_tuple, int act_field, int lineno,
{
if (pval[0] == 'f' && pval[1] == '\0')
{
((char *) var)[act_tuple] = false;
if (offset==sizeof(char)) ((char *) var)[act_tuple] = false;
else if (offset==sizeof(int)) ((int *) var)[act_tuple] = false;
else ECPGraise(lineno, ECPG_CONVERT_BOOL, "different size");
break;
}
else if (pval[0] == 't' && pval[1] == '\0')
{
((char *) var)[act_tuple] = true;
if (offset==sizeof(char)) ((char *) var)[act_tuple] = true;
else if (offset==sizeof(int)) ((int *) var)[act_tuple] = true;
else ECPGraise(lineno, ECPG_CONVERT_BOOL, "different size");
break;
}
else if (pval[0] == '\0' && PQgetisnull(results, act_tuple, act_field))