From the manual,
types
A string that contains one or more characters which specify the types for the corresponding bind variables
Type specification chars
Character Description
i corresponding variable has type integer
d corresponding variable has type double
s corresponding variable has type string
b corresponding variable is a blob and will be sent in packets
How wrong is it to send everything as "s"? I am trying to make a dynamic function and for that I need to detect the data types and build the types
string from that. But if everything can be passed as string without any problem, then I can skip the hassle.