Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function clause error when logging union query #4

Closed
ding-an-sich opened this issue May 4, 2023 · 1 comment
Closed

Function clause error when logging union query #4

ding-an-sich opened this issue May 4, 2023 · 1 comment

Comments

@ding-an-sich
Copy link

** (FunctionClauseError) no function clause matching in String.split/3

 The following arguments were given to String.split/3:
 
     # 1
     {:error, "pg_format exited with status code 65280\nUncaught exception: Use of uninitialized value in pattern match (m//) at (...)/deps/ecto_dbg/priv/lib/pgFormatter/Beautify.pm line 965, <STDIN> line 1.\n at (...)/_build/test/lib/ecto_dbg/priv/pg_format line 19, <STDIN> line 1.\n\tmain::__ANON__(\"Use of uninitialized value in pattern match (m//) at (...) called at (...)/deps/ecto_dbg/priv/lib/pgFormatter/Beautify.pm line 965\n\tpgFormatter::Beautify::beautify(pgFormatter::Beautify=HASH(0x56106f996638)) called at (...)/deps/ecto_dbg/priv/lib/pgFormatter/CLI.pm line 170\n\tpgFormatter::CLI::beautify(pgFormatter::CLI=HASH(0x56106f748548)) called at (...)/deps/ecto_dbg/priv/lib/pgFormatter/CLI.pm line 78\n\tpgFormatter::CLI::run(pgFormatter::CLI=HASH(0x56106f748548)) called at (...)/_build/test/lib/ecto_dbg/priv/pg_format line 49"}
 
     # 2
     "\n"
 
     # 3
     []

The error occurs when I'm trying to log a query with multiple union_all. Not sure what's going on.

@akoutmos
Copy link
Owner

This should be fixed in version 0.3.0!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants