Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Temp table now matches idnumber length with username - thanks to Yves…

… Roy for pointing this out.
  • Loading branch information...
commit 812fe4c5fc6aa74627980eea710aadf49d76a536 1 parent fe1acc3
martinlanghoff authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 auth/ldap/lib.php
View
4 auth/ldap/lib.php
@@ -383,10 +383,10 @@ function auth_sync_users ($bulk_insert_records = 1000, $do_updates=1) {
if(strtolower($CFG->dbtype) === 'mysql'){
// help old mysql versions cope with large temp tables
execute_sql('SET SQL_BIG_TABLES=1', false);
- execute_sql('CREATE TEMPORARY TABLE ' . $CFG->prefix .'extuser (idnumber VARCHAR(12), PRIMARY KEY (idnumber)) TYPE=MyISAM',false);
+ execute_sql('CREATE TEMPORARY TABLE ' . $CFG->prefix .'extuser (idnumber VARCHAR(64), PRIMARY KEY (idnumber)) TYPE=MyISAM',false);
} elseif (strtolower($CFG->dbtype) === 'postgres7'){
$bulk_insert_records = 1; // no support for multiple sets of values
- execute_sql('CREATE TEMPORARY TABLE '.$CFG->prefix.'extuser (idnumber VARCHAR(12), PRIMARY KEY (idnumber))',false);
+ execute_sql('CREATE TEMPORARY TABLE '.$CFG->prefix.'extuser (idnumber VARCHAR(64), PRIMARY KEY (idnumber))',false);
}
Please sign in to comment.
Something went wrong with that request. Please try again.