Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 310 and 400] [Versions 311 and 400] [Versions 39 and 400] [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]

ADOdb PostgreSQL 7 driver

Copyright: 2000-2013 John Lim
Copyright: 2014 Damien Regad, Mark Newnham and the ADOdb community
License: BSD-3-Clause
License: LGPL-2.1-or-later
File Size: 396 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 classes

ADODB_postgres7:: (8 methods):
  __construct()
  SelectLimit()
  _generateMetaColumnsSQL()
  MetaForeignKeys()
  _old_MetaForeignKeys()
  _query()
  getCharSet()
  setCharSet()

Name:: (0 methods):

ADORecordSet_postgres7:: (1 method):
  MoveNext()

ADORecordSet_assoc_postgres7:: (2 methods):
  _fetch()
  MoveNext()


Class: ADODB_postgres7  - X-Ref

__construct()   X-Ref
No description

SelectLimit($sql,$nrows=-1,$offset=-1,$inputarr=false,$secs2cache=0)   X-Ref
No description

_generateMetaColumnsSQL($table, $schema)   X-Ref
Generate the SQL to retrieve MetaColumns data

return: string SQL statement to execute
param: string $table Table name
param: string $schema Schema name (can be blank)

MetaForeignKeys($table, $owner=false, $upper=false)   X-Ref

returns: assoc array where keys are tables, and values are foreign keys

_old_MetaForeignKeys($table, $owner=false, $upper=false)   X-Ref
No description

_query($sql,$inputarr=false)   X-Ref
No description

getCharSet()   X-Ref
Retrieve the client connection's current character set.
If no charsets were compiled into the server, the function will always
return 'SQL_ASCII'.

return: string|false The character set, or false if it can't be determined.

setCharSet($charset)   X-Ref
Sets the client-side character set (encoding).

Allows managing client encoding - very important if the database and
the output target (i.e. HTML) don't match; for instance, you may have a
UNICODE database and server your pages as WIN1251, etc.

Supported on PostgreSQL 7.0 and above. Available charsets depend on
PostgreSQL version and the distribution's compile flags.

return: bool True if the character set was changed successfully, false otherwise.
param: string $charset The character set to switch to.

Class: Name  - X-Ref

Class: ADORecordSet_postgres7  - X-Ref

MoveNext()   X-Ref
No description

Class: ADORecordSet_assoc_postgres7  - X-Ref

_fetch()   X-Ref
No description

MoveNext()   X-Ref
No description