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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user