This behave is based on implicitly using of prepare statements. When prepared statements are used, then parameters are passed to database server separately from query. So there quoting must not be.PL/pgSQL uses a prepared statements, psycopg2 uses prepared statements: DECLARE myvar int; BEGIN DELETE FROM mytab WHERE column = myvar; -- quietly using prepared statement versus DECLARE myvar int; BEGIN --using dynamic SQL is similar to classic languages, quoting is necessary -- there, but you must use a quote_literal function (protection against SQL injection EXECUTE 'DELETE FROM mytab WHERE column = ' || quote_literal(myvar); -- or dynamic SQL with clause "USING" EXECUTE 'DELETE FROM mytab WHERE column = $1' USING myvar.
This behave is based on implicitly using of prepare statements. When prepared statements are used, then parameters are passed to database server separately from query. So there quoting must not be.PL/pgSQL uses a prepared statements, psycopg2 uses prepared statements: ... DECLARE myvar int; BEGIN DELETE FROM mytab WHERE column = myvar; -- quietly using prepared statement versus DECLARE myvar int; BEGIN --using dynamic SQL is similar to classic languages, quoting is necessary -- there, but you must use a quote_literal function (protection against SQL injection EXECUTE 'DELETE FROM mytab WHERE column = ' || quote_literal(myvar); -- or dynamic SQL with clause "USING" EXECUTE 'DELETE FROM mytab WHERE column = $1' USING myvar.
Even my implementation works when I use ints... it only stops working when I use varchars. I had the same problems, even with the implementation you suggested. I will mark your answer as correct for the time you spent on it, though.
Thank you! – Ronny 9 hours ago.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.