Skip to content

Commit d13fe29

Browse files
committed
I have a problem with Access97 not working properly when entering new
records using a sub form, i.e. entering a new order/orderlines or master and detail tables. The problem is caused by a SQL statement that Access97 makes involving NULL. The syntax that fails is "column_name" = NULL. The following attachment was provided by -Jose'-. It contains a very small enhancement to gram.y that will allow Access97 to work properly with sub forms. Can this enhancement be added to release 6.5? <<gram.patch>> Thanks, Michael
1 parent fd80c10 commit d13fe29

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/backend/parser/gram.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
*
243243
*
244244
* IDENTIFICATION
245-
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/gram.c,v 2.76 1999/03/07 03:34:06 momjian Exp $
245+
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/gram.c,v 2.77 1999/03/14 05:14:59 momjian Exp $
246246
*
247247
* HISTORY
248248
* AUTHOR DATE MAJOR EVENT

src/backend/parser/gram.y

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.58 1999/03/07 03:34:10 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.59 1999/03/14 05:15:08 momjian Exp $
1414
*
1515
* HISTORY
1616
* AUTHOR DATE MAJOR EVENT
@@ -3702,6 +3702,8 @@ a_expr: attr opt_indirection
37023702
{ $$ = makeA_Expr(OP, "<", $1, $3); }
37033703
| a_expr '>' a_expr
37043704
{ $$ = makeA_Expr(OP, ">", $1, $3); }
3705+
| a_expr '=' NULL_P
3706+
{ $$ = makeA_Expr(ISNULL, NULL, $1, NULL); }
37053707
| a_expr '=' a_expr
37063708
{ $$ = makeA_Expr(OP, "=", $1, $3); }
37073709
| ':' a_expr

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy