@@ -7226,6 +7226,23 @@ func (s *testIntegrationSerialSuite) TestIssue19116(c *C) {
72267226 tk .MustQuery ("select coercibility(1=1);" ).Check (testkit .Rows ("5" ))
72277227}
72287228
7229+ func (s * testIntegrationSerialSuite ) TestIssue14448and19383 (c * C ) {
7230+ tk := testkit .NewTestKit (c , s .store )
7231+ tk .MustExec ("use test" )
7232+ tk .MustExec ("DROP TABLE IF EXISTS t1" )
7233+ tk .MustExec ("CREATE TABLE t1 (a INT NOT NULL PRIMARY KEY)" )
7234+ tk .MustExec ("INSERT INTO t1 VALUES (1),(2),(3)" )
7235+ _ , err := tk .Exec ("SELECT SQL_CALC_FOUND_ROWS * FROM t1 LIMIT 1" )
7236+ message := `function SQL_CALC_FOUND_ROWS has only noop implementation in tidb now, use tidb_enable_noop_functions to enable these functions`
7237+ c .Assert (strings .Contains (err .Error (), message ), IsTrue )
7238+ _ , err = tk .Exec ("SELECT * FROM t1 LOCK IN SHARE MODE" )
7239+ message = `function LOCK IN SHARE MODE has only noop implementation in tidb now, use tidb_enable_noop_functions to enable these functions`
7240+ c .Assert (strings .Contains (err .Error (), message ), IsTrue )
7241+ tk .MustExec ("SET tidb_enable_noop_functions=1" )
7242+ tk .MustExec ("SELECT SQL_CALC_FOUND_ROWS * FROM t1 LIMIT 1" )
7243+ tk .MustExec ("SELECT * FROM t1 LOCK IN SHARE MODE" )
7244+ }
7245+
72297246func (s * testIntegrationSerialSuite ) TestIssue19315 (c * C ) {
72307247 tk := testkit .NewTestKit (c , s .store )
72317248 tk .MustExec ("use test" )
0 commit comments