summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/sql.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el
index 6d91d84fa70..4ab174d92b9 100644
--- a/lisp/progmodes/sql.el
+++ b/lisp/progmodes/sql.el
@@ -3105,7 +3105,7 @@ displayed."
(defun sql-end-of-statement (arg)
"Move to the end of the current SQL statement."
(interactive "p")
- (let ((term (sql-get-product-feature sql-product :terminator))
+ (let ((term (or (sql-get-product-feature sql-product :terminator) ";"))
(re-search (if (> 0 arg) 're-search-backward 're-search-forward))
(here (point))
(n 0))