forrest79 / phpgsql

Simple and fast PHP database library for PostgreSQL with auto converting DB types to PHP and fluent interface for SQL query writing.
Other
11 stars 3 forks source link

Put numeric parameters right inside SQL query #21

Open forrest79 opened 4 years ago

forrest79 commented 4 years ago

Now, bool parameters are putting inside SQL query and are not passed as parameters into pg_query_params(). Do this also for integers/floats should be safe too and when there are no other parameters types, quicker pg_query() could be used in some cases.

forrest79 commented 7 months ago

This is already made for bools and it works bad if you want to use $1 parameters and want to use some parameter more than once...