vrana/notorm — Issue #28: No way to use limit on windows with php >= 5.3
Author: wergio
Created: 2011-10-19 16:26:51+00:00
State: open

Hi, unfortunately the DBLIB extension is not available anymore on Windows with PHP 5.3 or later. :-(
http://www.php.net/manual/en/ref.pdo-dblib.php

and the other two drivers avaiable doesn't accept NotORM's "limit" !!! Help !!!

example:

require_once 'NotORM.php';

$pdo = new PDO("mssql:host=localhost,1433;dbname=testdb", 'sa', 'test');
//$pdo = new PDO("sqlsrv:Server=localhost;Database=testdb", 'sa', 'test'); // same behaviour
$db = new NotORM($pdo);

$lang= $db->languages()->select('language')->limit(2);

echo 'query: '.$lang."\n";
// query: SELECT language FROM languages LIMIT 2 OFFSET 0

foreach($lang as $l)
echo $l['language']."\n";

// nothing displayed...