in reply to Re^5: Distiguishing arguments: number-strings vs real integer
in thread Distiguishing arguments: number-strings vs real integer

In the case of (auto generated) placeholders I will pass a reference to the original value into DBI->bind_param() , so this will be fine.

It's the case of literals causing me headaches.

The raw concept in short:

So something like this
query { package t_table; WHERE col < "42" }

needs to distinguish if the literal was string "42" or 42

Of course I could think about overloading lt too, to have a more Perlish way to get the type (and crosscheck against the table's definition), but the more information I have to catch errors, the better.

I hope my approach is clearer now! :)

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice