K
K
Kojans2017-02-26 19:55:57
PostgreSQL
Kojans, 2017-02-26 19:55:57

PostgreSQL why Error when select?

Decided to check this database.
Created
db.Query(`select name FROM users WHERE id=1`)
at about 100 execution error:
pq: ��������, ��� ������� ����� �� ������
I can't read it, should I use another query?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2017-02-26
@vshvydky

Adjust the encoding and you will see the error. You have something in Unicode, most likely, but something in asci, this is just an assumption. And to understand the error, you need to read it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question