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

error: cannot initialize return object of type 'bool' with an rvalue of type 'nullptr_t'

Details

    Description

      Probably other versions are affected to, didn't try to build yet, but the commit in question is in 10.3+

      10.6 28116ca3614

      /usr/ports/databases/mariadb106-server/work/mariadb-10.6.8/sql/sql_lex.cc:9265:12: error: cannot initialize return object of type 'bool' with an rvalue of type 'nullptr_t'
          return NULL;
                 ^~~~
      /usr/include/sys/_null.h:37:14: note: expanded from macro 'NULL'
      #define NULL    nullptr
                      ^~~~~~~
      /usr/ports/databases/mariadb106-server/work/mariadb-10.6.8/sql/sql_lex.cc:9269:12: error: cannot initialize return object of type 'bool' with an rvalue of type 'nullptr_t'
          return NULL;
                 ^~~~
      /usr/include/sys/_null.h:37:14: note: expanded from macro 'NULL'
      #define NULL    nullptr
                      ^~~~~~~
      /usr/ports/databases/mariadb106-server/work/mariadb-10.6.8/sql/sql_lex.cc:9276:12: error: cannot initialize return object of type 'bool' with an rvalue of type 'nullptr_t'
          return NULL;
                 ^~~~
      /usr/include/sys/_null.h:37:14: note: expanded from macro 'NULL'
      #define NULL    nullptr
                      ^~~~~~~
      3 errors generated.
      

      The lines appear to belong to this commit:

      commit fbcf0225e195bae2679272569e5a6310557ec853 (origin/bb-10.3-bar)
      Author: Alexander Barkov
      Date:   Fri Mar 25 13:52:32 2022 +0400
       
          MDEV-19804 sql_mode=ORACLE: call procedure in packages
      

      Attachments

        Activity

          elenst Elena Stepanova created issue -
          bar Alexander Barkov made changes -
          Field Original Value New Value
          issue.field.resolutiondate 2022-04-04 05:18:31.0 2022-04-04 05:18:31.504
          bar Alexander Barkov made changes -
          Fix Version/s 10.3.35 [ 27512 ]
          Fix Version/s 10.4.25 [ 27510 ]
          Fix Version/s 10.5.16 [ 27508 ]
          Fix Version/s 10.6.8 [ 27506 ]
          Fix Version/s 10.7.4 [ 27504 ]
          Fix Version/s 10.8.3 [ 27502 ]
          Fix Version/s 10.9.1 [ 27114 ]
          Fix Version/s 10.6 [ 24028 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]

          People

            bar Alexander Barkov
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.