Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 45c7c60

Browse files
committed
This patch against 0.98.7 lib/tables.tcl will allow PGAccess to create new
records containing apostrophes in text fields without altering the appearance of the entry in the GUI interface (by copying the fldval to fldvalfixed). This will alleviate the need for users to create a record and then go back to edit apostrophes into the text they entered. Ryan Grange
1 parent d61c788 commit 45c7c60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bin/pgaccess/lib/tables.tcl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,8 @@ if {$PgAcVar(mw,$wn,row_edited)==$PgAcVar(mw,$wn,last_rownum)} {
544544
set PgAcVar(mw,$wn,newrec_values) [lreplace $PgAcVar(mw,$wn,newrec_values) $sfp $sfp]
545545
}
546546
lappend PgAcVar(mw,$wn,newrec_fields) "\"$fld\""
547-
lappend PgAcVar(mw,$wn,newrec_values) '$fldval'
547+
regsub -all {'} $fldval '' fldvalfixed
548+
lappend PgAcVar(mw,$wn,newrec_values) '$fldvalfixed'
548549
# Remove the untouched tag from the object
549550
$wn.c dtag $PgAcVar(mw,$wn,id_edited) unt
550551
$wn.c itemconfigure $PgAcVar(mw,$wn,id_edited) -fill red
@@ -2175,7 +2176,7 @@ proc vTclWindow.pgaw:Permissions {base} {
21752176
#
21762177
# This file contains Tcl procedures used to input Japanese text.
21772178
#
2178-
# $Header: /cvsroot/pgsql/src/bin/pgaccess/lib/Attic/tables.tcl,v 1.11 2002/02/18 04:01:27 ishii Exp $
2179+
# $Header: /cvsroot/pgsql/src/bin/pgaccess/lib/Attic/tables.tcl,v 1.12 2002/04/04 06:27:45 momjian Exp $
21792180
#
21802181
# Copyright (c) 1993 Software Research Associates, Inc.
21812182
#

0 commit comments

Comments
 (0)