From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Sebasti=C3=A1n_?= =?UTF-8?Q?Mon=C3=ADa?= Newsgroups: gmane.emacs.bugs Subject: bug#35307: sql.el - Product "ms" is missing "prompt-cont-regexp" Date: Wed, 17 Apr 2019 17:10:22 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_BN8PR04MB555551C980BD1904CF2EF70F8B250BN8PR04MB5555namp_" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="268381"; mail-complaints-to="usenet@blaine.gmane.org" To: 35307@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 17 19:11:42 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGo61-0017iM-K6 for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Apr 2019 19:11:41 +0200 Original-Received: from localhost ([127.0.0.1]:56863 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGo60-0007rf-Gp for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Apr 2019 13:11:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGo5P-0007T2-KG for bug-gnu-emacs@gnu.org; Wed, 17 Apr 2019 13:11:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hGo5O-0007Nf-NK for bug-gnu-emacs@gnu.org; Wed, 17 Apr 2019 13:11:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55410) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hGo5O-0007NM-J7 for bug-gnu-emacs@gnu.org; Wed, 17 Apr 2019 13:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hGo5O-0004dh-AZ for bug-gnu-emacs@gnu.org; Wed, 17 Apr 2019 13:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Sebasti=C3=A1n_?= =?UTF-8?Q?Mon=C3=ADa?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Apr 2019 17:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35307 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.155552104017796 (code B ref -1); Wed, 17 Apr 2019 17:11:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Apr 2019 17:10:40 +0000 Original-Received: from localhost ([127.0.0.1]:40721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGo52-0004cy-E5 for submit@debbugs.gnu.org; Wed, 17 Apr 2019 13:10:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44803) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hGo4z-0004cl-MV for submit@debbugs.gnu.org; Wed, 17 Apr 2019 13:10:39 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:33116) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hGo4u-0006y9-In for submit@debbugs.gnu.org; Wed, 17 Apr 2019 13:10:32 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGo4t-00074W-F9 for bug-gnu-emacs@gnu.org; Wed, 17 Apr 2019 13:10:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hGo4s-0006vp-DR for bug-gnu-emacs@gnu.org; Wed, 17 Apr 2019 13:10:31 -0400 Original-Received: from mail-oln040092009065.outbound.protection.outlook.com ([40.92.9.65]:18862 helo=NAM04-BN3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hGo4r-0006oL-S9 for bug-gnu-emacs@gnu.org; Wed, 17 Apr 2019 13:10:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wTweyRpEaHP4XX7MmZKWryNpvOcgSRxUu2qkbCpUiOk=; b=ALmU0U1sqMDknH0t8TI/irJP6DGsn6IRN0X5zyIQXc8omVyNa5A2AUNK20narE8/YpPeyYRzKyrV9Ud5APHiqlz+O+L7bRYnp/pyJilMI+RO28OuEXU+zGyBJxax1Ex2nDquAv7+1OlFEKQGGvZIm6dWj4ao5qKnpA/KprByxlO5zUtb0mD8GmJw5gxiroaZJjFZP7O00TYgOyROo43bsOT/dRq5ezNLg31NLKb38BZu64tayQRk/aId2vIEJzTLS+6RyuB3DW1viSXqauqcyhbis9OFDVAvIeGTWzUtbrFbc9qin/Eee5jDgnQJUgJkGb6ovwv5Rn2FiAO8quD7kg== Original-Received: from BN3NAM04FT031.eop-NAM04.prod.protection.outlook.com (10.152.92.58) by BN3NAM04HT179.eop-NAM04.prod.protection.outlook.com (10.152.92.230) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1771.16; Wed, 17 Apr 2019 17:10:22 +0000 Original-Received: from BN8PR04MB5555.namprd04.prod.outlook.com (10.152.92.52) by BN3NAM04FT031.mail.protection.outlook.com (10.152.92.64) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1771.16 via Frontend Transport; Wed, 17 Apr 2019 17:10:22 +0000 Original-Received: from BN8PR04MB5555.namprd04.prod.outlook.com ([fe80::6508:8b83:8c8f:bda6]) by BN8PR04MB5555.namprd04.prod.outlook.com ([fe80::6508:8b83:8c8f:bda6%6]) with mapi id 15.20.1792.018; Wed, 17 Apr 2019 17:10:22 +0000 Thread-Topic: sql.el - Product "ms" is missing "prompt-cont-regexp" Thread-Index: AQHU9UAZ90D88hIVb0K5R4XgkBQkVg== Accept-Language: en-US Content-Language: en-US x-incomingtopheadermarker: OriginalChecksum:652118703FE147E2BA8C52626AFF1078E897C5DD585FFF7EA0B5F0F604925921; UpperCasedChecksum:9D744F2878DD2C3569C84FCD3CAEB811B71EF86E0F2D80F895D895DEC5114E7C; SizeAsReceived:6609; Count:41 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [UhgnP2Jjk6AIZdhFf85IfY67uILbMXrH] x-ms-publictraffictype: Email x-incomingheadercount: 41 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031323274)(2017031324274)(2017031322404)(1603101475)(1601125500)(1701031045); SRVR:BN3NAM04HT179; x-ms-traffictypediagnostic: BN3NAM04HT179: x-microsoft-antispam-message-info: MblZDoRorGQvNDdIBZfDmM3qtBQJlefs9Q0DEQhAPwm8cNy1/kCkJy66a2ui01e35C2naLB3F4XvNLpTbsqoiBcnZQ/Ejsv2woZ2V0/hhqhHDWO4NEWV23yBwkws9E5qX/h7aicVg5TyXd4Iqt7RUmjRXDzPMaDo8bh4LtOpL2Yg66LZi+PKezDVyDZYfR1M X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: b95a5893-7577-4c1e-078b-08d6c3579377 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Apr 2019 17:10:22.2816 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3NAM04HT179 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:157770 Archived-At: --_000_BN8PR04MB555551C980BD1904CF2EF70F8B250BN8PR04MB5555namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I've noticed this in the past but for reason didn't notice I should report = it until I downloaded the Emacs 27 Alpha recently and had to fix it again. The configuration for MS SQL Server in sql.el is missing "prompt-cont-regex= p" and thus breaks when you launch SQLi. All that is needed is the following: (ms :name "Microsoft" :font-lock sql-mode-ms-font-lock-keywords :sqli-program sql-ms-program :sqli-options sql-ms-options :sqli-login sql-ms-login-params :sqli-comint-func sql-comint-ms :prompt-regexp "^[0-9]*>" ;; below the new line :prompt-cont-regexp "^[0-9]*>" ;; above the new line :prompt-length 5 :syntax-alist ((?@ . "_")) :terminator ("^go" . "go")) Thank you! Sebasti=E1n --_000_BN8PR04MB555551C980BD1904CF2EF70F8B250BN8PR04MB5555namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I've noticed this in the past but for reason didn't notice I should report = it until I downloaded the Emacs 27 Alpha recently and had to fix it again.<= /div>
The configuration for MS SQL Server in sql.el is mi= ssing "prompt-cont-regexp" and thus breaks when you launch SQLi.

All that is needed is the following:

(ms
     :name "Microsoft"
     :font-lock sql-mode-ms-font-lock-keywords
     :sqli-program sql-ms-program
     :sqli-options sql-ms-options
     :sqli-login sql-ms-login-params
     :sqli-comint-func sql-comint-ms
     :prompt-regexp "^[0-9]*>"
      ;; below the new line
     :prompt-cont-regexp "^[0-9]*>"
     = ; ;; above the new line
     :prompt-length 5
     :syntax-alist ((?@ . "_"))
     :terminator ("^go" . "go"))


Thank you!
Sebasti=E1n

--_000_BN8PR04MB555551C980BD1904CF2EF70F8B250BN8PR04MB5555namp_--