Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-24701

T-SQL support for string function REPLICATE alias for REPEAT in sql_mode MSSQL

    XMLWordPrintable

    Details

      Description

      https://docs.microsoft.com/en-us/sql/t-sql/functions/replace-transact-sql?view=sql-server-ver15

      MariaDB [test]> set sql_mode ='MSSQL';
      Query OK, 0 rows affected (0.001 sec)
      MariaDB [test]> select REPLICATE('svar',3);
      ERROR 1305 (42000): FUNCTION test.REPLICATE does not exist
      MariaDB [test]> select REPEAT('svar',3);
      -----------------

      REPEAT('aaa',3)

      -----------------

      svarsvarsvar

      -----------------
      1 row in set (0.001 sec)

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            stephane@skysql.com VAROQUI Stephane
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Git Integration