daGrevis Posted February 24, 2013 Report Share Posted February 24, 2013 Aha. Quote Link to comment Share on other sites More sharing options...
marrtins Posted February 24, 2013 Report Share Posted February 24, 2013 Tas ORM ģenerē tik labus kverijus, ka nekad nav sanācis skatīties, testēt? o_O Quote Link to comment Share on other sites More sharing options...
daGrevis Posted February 25, 2013 Report Share Posted February 25, 2013 Ir. Tad arī tiek pielabots, joprojām ORM. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted February 25, 2013 Report Share Posted February 25, 2013 (edited) Pameklēju un atradu vienu mazu funckiju, kurā nevarēja izmantot Django ORM. Problēma, ka legasī datubāzei ir tabula ar diviem PK, ko, savukārt, ORM nesaprot. Edited February 25, 2013 by daGrevis Quote Link to comment Share on other sites More sharing options...
marrtins Posted February 25, 2013 Report Share Posted February 25, 2013 Kā tabulai var dabūt divus PK? Quote Link to comment Share on other sites More sharing options...
codez Posted February 25, 2013 Report Share Posted February 25, 2013 Kā tabulai var dabūt divus PK? Drošvien domāts, ka pk ar diviem laukiem. Quote Link to comment Share on other sites More sharing options...
zuks Posted February 25, 2013 Report Share Posted February 25, 2013 (edited) CONSTRAINT constraint_name PRIMARY KEY (column1, column2, ... column_n) Lai visādi WEBLOGICi saprastu parasti izveido virtuālo id kolonu vai arī nodrošina entity constraint. Edited February 25, 2013 by zuks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.