Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 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  );