aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pgaccess/lib/tables.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/pgaccess/lib/tables.tcl')
-rw-r--r--src/bin/pgaccess/lib/tables.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pgaccess/lib/tables.tcl b/src/bin/pgaccess/lib/tables.tcl
index d25bce73add..8ab4f579aff 100644
--- a/src/bin/pgaccess/lib/tables.tcl
+++ b/src/bin/pgaccess/lib/tables.tcl
@@ -1185,8 +1185,8 @@ if {$PgAcVar(nt,tablename)==""} then {
focus .pgaw:NewTable.etabn
return
}
-if {[.pgaw:NewTable.lb size]==0} then {
- showError [intlmsg "Your table has no fields!"]
+if {([.pgaw:NewTable.lb size]==0) && ($PgAcVar(nt,inherits)=="")} then {
+ showError [intlmsg "Your table has no columns!"]
focus .pgaw:NewTable.e2
return
}