Donate Share

Gladius DB

Code

Programming Languages: PHP

License: GNU General Public License (GPL)

Repositories

browse code, statistics, last commit on 2009-08-20 svn co https://gladius.svn.sourceforge.net/svnroot/gladius gladius

Show:

What's happening?

  • Comment: Problems with MAX, MIN, AVG and SUM

    I have the same issue, and gladius also does not return averages. PHP5.

    2009-09-30 20:38:00 UTC by snicker7

  • Gladius DB

    legolas558 committed revision 201 to the Gladius DB SVN repository, changing 2 files.

    2009-08-20 12:30:45 UTC by legolas558

  • Gladius DB

    legolas558 committed revision 200 to the Gladius DB SVN repository, changing 1 files.

    2009-08-17 19:39:43 UTC by legolas558

  • Support non-numeric key fields

    Currently, only numeric fields can be keys. Is there any special reason for that? Support for character fields would be great!

    2009-05-30 10:41:19 UTC by andrew_scss

  • Field identifiers not case insensitive

    A lot of the field name (and probably database name, table name) coding is case sensitive. I've had to add calls to gladius_strtoupper all over the place to get some existing code working. I'm sure that if I understood how it all worked better, fewer changes would be needed (would be more efficient too).

    2009-05-30 08:19:50 UTC by andrew_scss

  • Problems with ADOdb Lite data types

    The data type mapping in the ADOdb Lite driver (gladius_datadict.inc) is missing support for 'DT': case 'DT': return 'DATETIME'; Also, the ADOdb Lite documentation states that the 'X' type is capped to 4000 characters, and the 'XL' should be the largest possible. Accordingly, the following changes should be made: case 'XL': return 'VARCHAR(65000)'; case 'X': return 'VARCHAR(4000)';...

    2009-05-30 08:11:54 UTC by andrew_scss

  • Ignore index usages

    An application I'm working with assumes the support of indexes. Gladius doesn't support indexes, but there's no reason index maintenance can't just be ignored! :-) I've done this by adding the following to the Query function in gladius.php (inserted at about line 1186): case 'ALTER': $result = true; // ignore table alterations break; And the following just before line 41 in...

    2009-05-30 08:00:01 UTC by andrew_scss

  • NULLs not converting to zero

    The function _retrieve_value (line 671 in gladius.php) does not handle nulls. I've found I've had to add the following code to the beginning of the !is_numeric code for both integer and double data types: if ($value == NULL) { $dest = 0; return true; }.

    2009-05-30 05:23:34 UTC by andrew_scss

  • Inserting NULLs Failure

    Null values cannot be inserted into records. The fix seems to be adding the following code at the beginning of _get_immediate() (at line 601 of gladius.php): if (preg_match('/\\s*(null)\\s*/iA', $this->sql, $m, PREG_OFFSET_CAPTURE, $this->offset)) { $this->offset = $m[0][1]+strlen($m[0][0]); return new value( NULL, $this); } At the same time I noticed that the preceding function...

    2009-05-30 05:18:07 UTC by andrew_scss

  • Datetime Encoding Failure

    Lines 688-689 in gladius.php call the date/time "_enc" functions with four arguments, however, the functions (at lines 210, 227, 231) have a fifth argument $id that is unused. Deleting that argument appears to fix the problem.

    2009-05-30 04:42:45 UTC by andrew_scss

Our Numbers