fluentpdo icon indicating copy to clipboard operation
fluentpdo copied to clipboard

SQLSRV Query Result Limit

Open B1Q opened this issue 8 years ago • 3 comments

Hello, i was wondering if fluentpdo will support LIMIT for SQLSRV not MySQL i doubt you don't know this but i will explain using queries

MySQL: select * from _table where col1 = '123' Limit 10 MSSQL: select TOP 10 * from _table where col1='123'

i tried to mess with the src to get the result i wanted but i couldn't do it haha

Regards

B1Q avatar May 29 '16 09:05 B1Q

The only way this could be done would be for Fluent to be aware of the database environment by either using a detection system, or a user-supplied argument passed to the constructor.

cbornhoft avatar Jun 08 '16 14:06 cbornhoft

yeah hopefully they would consider doing that

B1Q avatar Jun 12 '16 10:06 B1Q

There is a very good overview of possible result limitations on wikipedia. How about implementing some of them and allow to configure the behaviour to use from php on the FleuntPDO object like debug and convertTypes? So it is the applications responsibility to set the behaviour correctly.

hapm avatar Oct 19 '17 08:10 hapm