Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/MariaDB/storage/connect/mysql-test/connect/t/   (MariaDB Server Version 8.1-8.4©)  Datei vom 1.9.2026 mit Größe 1011 B image not shown  

Quelle  vcol.test  Sprache: unbekannt

 
Spracherkennung für: .test vermutete Sprache: SQL {SQL[126] ADA[72] VDM[72]} [Methode: maximale Elemente, drei Dimensionen]

let datadir= `select @@datadir`;
--copy_file $MTR_SUITE_DIR/std_data/boys.txt $datadir/test/boys.txt

create table t1 (
  #linenum int(6) not null default 0 special=rowid,
  name char(12) not null,
  city char(11) not null,
  birth date not null date_format='DD/MM/YYYY',
  hired date not null date_format='DD/MM/YYYY' flag=36,
  agehired int(3) as (floor(datediff(hired,birth)/365.25))
  )
ENGINE=CONNECT CHARSET=latin1 table_type=FIX file_name='boys.txt' mapped=YES lrecl=47 ending=1;
select * from t1;
drop table t1;

--error ER_NULL_COLUMN_IN_INDEX
create table t1 (
  #linenum int(6) not null default 0 special=rowid,
  name char(12) not null,
  city char(11) not null,
  birth date not null date_format='DD/MM/YYYY',
  hired date not null date_format='DD/MM/YYYY' flag=36,
  agehired int(3) as (floor(datediff(hired,birth)/365.25)),
  index (agehired)
  )
ENGINE=CONNECT CHARSET=latin1 table_type=FIX file_name='boys.txt' mapped=YES lrecl=47 ending=1;

#
# Clean up
#
--remove_file $datadir/test/boys.txt

[Dauer der Verarbeitung: 0.17 Sekunden, vorverarbeitet 2026-10-08]