Posts by Thiago16Oli • 15 points
4 posts
-
1
votes1
answer448
viewsQ: How to extract values from a json to insert into a table in Postgresql
I need to migrate from sql server 2017 to the postgresql,but I never used postgresql and I’m having a hard time. I need to convert a array json for values that are inserted in the table. In the sql…
postgresqlasked Thiago16Oli 15 -
0
votes1
answer742
viewsA: generates error Can’t set headers after they are sent,is running 2 times
The problem was that I was running twice the function of mine validator so I solved it this way: function alterar(req,res){ try{ validator.validaValores(req.body,(err) => { if(err){ throw err…
-
0
votes1
answer742
viewsQ: generates error Can’t set headers after they are sent,is running 2 times
He’s running the contents of the validator 2 times, I’m new to Node.js and I don’t know what’s going on. When Validator returns an error to API for, when I have no return of an error the api works…
-
0
votes1
answer242
viewsQ: How to compare two List<Float> in Junit?
I need to compare two Lists, assertEquals(lista1, lista2); Assert.assertTrue(lista1.containsAll(lista2)); And the error the test shows is (index:22 size:22) java.lang.Indexoutofboundsexception Until…