The UNIX and Linux Forums
>
Special Forums
>
UNIX and Linux Applications
strange behavior of PSQL user defined function
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
strange behavior of PSQL user defined function
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
04-28-2009
thegeek
Registered User
Join Date: Apr 2009
Location: /usr/bin/vim
Posts: 455
My friend too tried finding solution, and found it.
It is,
Where ever the argument occurs, it is being replaced with the $ value. That is "id" is replaced with $1 in the query so the query becomes,
Code:
delete from testing where $1 = $1
So it deletes all the specified rows.
Thanks for all the people who tried to find the problem in it.
thegeek
View Public Profile
Visit thegeek's homepage!
Find all posts by thegeek
Find thegeek's past nominations received
Find thegeek's present nominations given