Skip to content

Crash by CASE WHEN and unknown identifier #1239

Closed

Description

@suyZhong

Consider the test case below.

CREATE TABLE t0(c0 INT, c1 VARCHAR(500), c2 INTEGER, PRIMARY KEY(c1));
CREATE TABLE t1(c0 INTEGER);
INSERT INTO t0(c0, c1) VALUES ('eኧ', '');

SELECT * FROM t1 LEFT  JOIN t0 ON (CASE 1 WHEN 2 THEN A(t0.c2) ELSE 3 END );
-- *** Error 08S01: [Virtuoso Driver]CL065: Lost connection to server

This query would cause a crash. I guess we could substitute A to any other unknown identifier.

I build docker image following this: https://github.com/openlink/vos-reference-docker. Kindly inform me if I did something wrong or I should provide more information (e.g. backtrace).

Here's the version:

[vos-reference/develop/7]

This Docker image is using the following version of Virtuoso:

Virtuoso Open Source Edition (Column Store) (multi threaded)
Version 7.2.12-dev.3238-pthreads as of Jan 19 2024 (b361275)
Compiled for Linux (x86_64-pc-linux-gnu)
Copyright (C) 1998-2024 OpenLink Software

Activity

  1. added a commit that references this issue on Feb 6, 2024
    862e314
  2. TallTed commented on Feb 6, 2024

    @TallTed
    Collaborator

    We believe we've fixed this in 862e314, now in the develop/7 branch.

    Please let us know if your testing shows otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions