0

Unexpected all null rows output with missing columns when running query (designed and tested on pgadmin) on Supabase SQL Editor. I already checked an both tables have RLS disabled and no constraints or references on either table despite the pk in the column name The query in question is this one

SELECT * FROM temp_insumos_corregidos t 
LEFT JOIN insumo_corregido i
ON (TRIM(i.insumo) = TRIM(t.nombre_anterior) OR TRIM(i.nombre_anterior) = TRIM(t.nombre_anterior))
WHERE i.pk_insumo IS NULL;

This is the pgAdmin output pgAdmin

This is the Supabase output Supabase

2
  • Figured it out myself. Apparently Supabase can't handle duplicate column names. After declaring them explicitly and giving aliases the query worked as intended Commented Feb 26 at 23:55
  • Please consider posting this as a proper answer. Commented Feb 27 at 1:57

1 Answer 1

0

Figured it out myself. Apparently Supabase can't handle duplicate column names. After declaring them explicitly and giving aliases the query worked as intended

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.