#6 doc error(?): Class 'Gladius_Resultset' not found

open-remind
Daniel
Website (3)
1
2007-05-25
2007-05-25
No

If I use gladius with ADODB_lite as mentioned in doc:

global $GLADIUS_DB_ROOT;
$GLADIUS_DB_ROOT = './data/db/';
require_once './libs/gladius/gladius.php';
require_once './libs/adodb_lite/adodb.inc.php';
$db = ADONewConnection('gladius');
$result = $db->Connect('', '', '', 'foo');

getting
Fatal error: Class 'Gladius_Resultset' not found in ..\adodb_lite\adodbSQL_drivers\gladius\gladius_driver.inc on line 279

Workaround: include gladius_rs.php

global $GLADIUS_DB_ROOT;
$GLADIUS_DB_ROOT = './data/db/';
require_once './libs/gladius/gladius.php';
require_once './libs/gladius/gladius_rs.php';
require_once './libs/adodb_lite/adodb.inc.php';
$db = ADONewConnection('gladius');
$result = $db->Connect('', '', '', 'foo');

Discussion

  • Daniel

    Daniel - 2007-05-25
    • priority: 5 --> 1
    • status: open --> open-remind
     
  • Daniel

    Daniel - 2007-05-25

    Logged In: YES
    user_id=799761
    Originator: NO

    Yes, it is a documentation error as the gladius_rs.php must be always included for operations returning a resultset.

    I will fix it, thanks for reporting!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks