Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

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

   1  <?php
   2  
   3  $ADODB_LANG_ARRAY = array (
   4  	 	 	 'LANG'                      => 'en',
   5              DB_ERROR                    => 'unknown error',
   6              DB_ERROR_ALREADY_EXISTS     => 'already exists',
   7              DB_ERROR_CANNOT_CREATE      => 'can not create',
   8              DB_ERROR_CANNOT_DELETE      => 'can not delete',
   9              DB_ERROR_CANNOT_DROP        => 'can not drop',
  10              DB_ERROR_CONSTRAINT         => 'constraint violation',
  11              DB_ERROR_DIVZERO            => 'division by zero',
  12              DB_ERROR_INVALID            => 'invalid',
  13              DB_ERROR_INVALID_DATE       => 'invalid date or time',
  14              DB_ERROR_INVALID_NUMBER     => 'invalid number',
  15              DB_ERROR_MISMATCH           => 'mismatch',
  16              DB_ERROR_NODBSELECTED       => 'no database selected',
  17              DB_ERROR_NOSUCHFIELD        => 'no such field',
  18              DB_ERROR_NOSUCHTABLE        => 'no such table',
  19              DB_ERROR_NOT_CAPABLE        => 'DB backend not capable',
  20              DB_ERROR_NOT_FOUND          => 'not found',
  21              DB_ERROR_NOT_LOCKED         => 'not locked',
  22              DB_ERROR_SYNTAX             => 'syntax error',
  23              DB_ERROR_UNSUPPORTED        => 'not supported',
  24              DB_ERROR_VALUE_COUNT_ON_ROW => 'value count on row',
  25              DB_ERROR_INVALID_DSN        => 'invalid DSN',
  26              DB_ERROR_CONNECT_FAILED     => 'connect failed',
  27              0	                        => 'no error', // DB_OK
  28              DB_ERROR_NEED_MORE_DATA     => 'insufficient data supplied',
  29              DB_ERROR_EXTENSION_NOT_FOUND=> 'extension not found',
  30              DB_ERROR_NOSUCHDB           => 'no such database',
  31              DB_ERROR_ACCESS_VIOLATION   => 'insufficient permissions',
  32              DB_ERROR_DEADLOCK           => 'deadlock detected',
  33              DB_ERROR_STATEMENT_TIMEOUT  => 'statement timeout',
  34              DB_ERROR_SERIALIZATION_FAILURE => 'could not serialize access'
  35  );