From: Phillip Gawlowski Date: 2008-05-31T01:37:34+09:00 Subject: Re: How do i replace actual value in the query with variable -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ryan Lewis wrote: | or even: | (0..4).each { |q| conn.exec( 'UPDATE SCH_EVENT SET P_ID = 2444334 where | RANK = #{q.to_f} AND playlist_id = 432' ) } Gotta love an SQL injection waiting to happen.. - -- Phillip Gawlowski Twitter: twitter.com/cynicalryan Blog: http://justarubyist.blogspot.com Don't sacrifice clarity for small gains in "efficiency". ~ - The Elements of Programming Style (Kernighan & Plaugher) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkhALVwACgkQbtAgaoJTgL9lzACgj3aKUfhMdkBthYSn/AUH5Phu VhEAnRnvQYHp21rNB+2ouNBtK5ogkNtw =/WtJ -----END PGP SIGNATURE-----