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

TO_DATE: Assertion `&my_charset_bin != charset()' failed in String::append_for_single_quote_using_mb_wc

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Critical
    • Resolution: Unresolved
    • N/A
    • 12.3
    • Server
    • None

    Description

      SELECT 1 FROM DUAL WHERE TO_DATE( '2026 JANUARY 01', 'YYYY MONTH DD', 'NLS_DATE_LANGUAGE=ENGLISH' );
      

      bb-12.3-MDEV-19683-to_date 14d4a8bac709e6eb33e3c4ce6de2a9f91f2517cc

      mariadbd: /data/bld/preview-12.3/bb-12.3-MDEV-19683-to_date/sql/sql_string.cc:1175: bool String::append_for_single_quote_using_mb_wc(const char*, size_t, CHARSET_INFO*): Assertion `&my_charset_bin != charset()' failed.
      260131 12:43:55 [ERROR] /share8t/bld/preview-12.3/bb-12.3-MDEV-19683-to_date/sql/mariadbd got signal 6 ;
       
      #9  0x00007f7f9c645395 in __assert_fail_base (fmt=0x7f7f9c7b9a90 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x55dc932f77c5 "&my_charset_bin != charset()", file=file@entry=0x55dc932f7808 "/data/bld/preview-12.3/bb-12.3-MDEV-19683-to_date/sql/sql_string.cc", line=line@entry=1175, function=function@entry=0x55dc932f7dd0 "bool String::append_for_single_quote_using_mb_wc(const char*, size_t, CHARSET_INFO*)") at ./assert/assert.c:92
      #10 0x00007f7f9c653eb2 in __GI___assert_fail (assertion=0x55dc932f77c5 "&my_charset_bin != charset()", file=0x55dc932f7808 "/data/bld/preview-12.3/bb-12.3-MDEV-19683-to_date/sql/sql_string.cc", line=1175, function=0x55dc932f7dd0 "bool String::append_for_single_quote_using_mb_wc(const char*, size_t, CHARSET_INFO*)") at ./assert/assert.c:101
      #11 0x000055dc90f7617b in String::append_for_single_quote_using_mb_wc (this=this@entry=0x7f7f87ffd650, src=0x7f7f7c0178d0 "NLS_DATE_LANGUAGE=ENGLISH", length=25, cs=cs@entry=0x55dc95fc66a0 <my_charset_utf8mb3_general1400_as_ci>) at /data/bld/preview-12.3/bb-12.3-MDEV-19683-to_date/sql/sql_string.cc:1175
      #12 0x000055dc91fcccc9 in Item_func_to_date::print (this=0x7f7f7c017920, str=0x7f7f87ffd650, query_type=QT_EXPLAIN) at /data/bld/preview-12.3/bb-12.3-MDEV-19683-to_date/sql/item_timefunc.cc:4986
      #13 0x000055dc91b1f2c5 in dbug_print_item (item=0x7f7f7c017920) at /data/bld/preview-12.3/bb-12.3-MDEV-19683-to_date/sql/item.cc:11656
      #14 0x000055dc90e1659d in JOIN::prepare (this=this@entry=0x7f7f7c018508, tables_init=tables_init@entry=0x0, conds_init=conds_init@entry=0x7f7f7c017920, og_num=og_num@entry=0, order_init=order_init@entry=0x0, skip_order_by=skip_order_by@entry=false, group_init=0x0, having_init=0x0, proc_param_init=0x0, select_lex_arg=0x7f7f7c0171c8, unit_arg=0x7f7f7c005378) at /data/bld/preview-12.3/bb-12.3-MDEV-19683-to_date/sql/sql_select.cc:1462
      #15 0x000055dc90e89ac5 in mysql_select (thd=thd@entry=0x7f7f7c000d58, tables=0x0, fields=..., conds=conds@entry=0x7f7f7c017920, og_num=og_num@entry=0, order=order@entry=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2164525824, result=0x7f7f7c0184e0, unit=0x7f7f7c005378, select_lex=0x7f7f7c0171c8) at /data/bld/preview-12.3/bb-12.3-MDEV-19683-to_date/sql/sql_select.cc:5425
      #16 0x000055dc90e8aa4e in handle_select (thd=thd@entry=0x7f7f7c000d58, lex=lex@entry=0x7f7f7c005298, result=result@entry=0x7f7f7c0184e0, setup_tables_done_option=setup_tables_done_option@entry=0) at /data/bld/preview-12.3/bb-12.3-MDEV-19683-to_date/sql/sql_select.cc:636
      #17 0x000055dc90c59a41 in execute_sqlcom_select (thd=thd@entry=0x7f7f7c000d58, all_tables=0x0) at /data/bld/preview-12.3/bb-12.3-MDEV-19683-to_date/sql/sql_parse.cc:6172
      #18 0x000055dc90c82f2d in mysql_execute_command (thd=thd@entry=0x7f7f7c000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /data/bld/preview-12.3/bb-12.3-MDEV-19683-to_date/sql/sql_parse.cc:3951
      #19 0x000055dc90c98221 in mysql_parse (thd=thd@entry=0x7f7f7c000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7f7f87ffe420) at /data/bld/preview-12.3/bb-12.3-MDEV-19683-to_date/sql/sql_parse.cc:7895
      #20 0x000055dc90c9e136 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x7f7f7c000d58, packet=packet@entry=0x7f7f7c00b5b9 "SELECT 1 FROM DUAL WHERE TO_DATE( '2026 JANUARY 01', 'YYYY MONTH DD', 'NLS_DATE_LANGUAGE=ENGLISH' )", packet_length=packet_length@entry=99, blocking=blocking@entry=true) at /data/bld/preview-12.3/bb-12.3-MDEV-19683-to_date/sql/sql_parse.cc:1878
      #21 0x000055dc90ca6e10 in do_command (thd=thd@entry=0x7f7f7c000d58, blocking=blocking@entry=true) at /data/bld/preview-12.3/bb-12.3-MDEV-19683-to_date/sql/sql_parse.cc:1417
      #22 0x000055dc911b3034 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55dcb903f8d8, put_in_cache=put_in_cache@entry=true) at /data/bld/preview-12.3/bb-12.3-MDEV-19683-to_date/sql/sql_connect.cc:1503
      #23 0x000055dc911b3d49 in handle_one_connection (arg=0x55dcb903f8d8) at /data/bld/preview-12.3/bb-12.3-MDEV-19683-to_date/sql/sql_connect.cc:1415
      #24 0x000055dc924bba95 in pfs_spawn_thread (arg=0x55dcb909e5c8) at /data/bld/preview-12.3/bb-12.3-MDEV-19683-to_date/storage/perfschema/pfs.cc:2198
      #25 0x00007f7f9c6a81c4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #26 0x00007f7f9c72885c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      Attachments

        Issue Links

          Activity

            People

              monty Michael Widenius
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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