code_junkie

Explanation of Oslo error “M2037: SQL Generation Internal Error: Missing generator for variable”?

Nov 12th, 2011
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. module T {
  2.  
  3. type A {
  4. Id : Integer32 = AutoNumber();
  5. } where identity Id;
  6.  
  7. As : A*;
  8.  
  9. type B {
  10. Id : Integer32 = AutoNumber();
  11. // A : A;
  12. // } where A in As && identity Id;
  13. } where identity Id;
  14.  
  15. Bs : B*;
  16.  
  17. type C {
  18. Id : Integer32 = AutoNumber();
  19. B : B;
  20. } where B in Bs && identity Id;
  21.  
  22. Cs : C*;
  23.  
  24. }
  25.  
  26. set xact_abort on;
  27. go
  28.  
  29. begin transaction;
  30. go
  31.  
  32. set ansi_nulls on;
  33. go
  34.  
  35. create schema [T];
  36. go
  37.  
  38. create table [T].[As]
  39. (
  40. [Id] int not null identity,
  41. constraint [PK_As] primary key clustered ([Id])
  42. );
  43. go
  44.  
  45. create table [T].[Bs]
  46. (
  47. [Id] int not null identity,
  48. constraint [PK_Bs] primary key clustered ([Id])
  49. );
  50. go
  51.  
  52. create table [T].[Cs]
  53. (
  54. [Id] int not null identity,
  55. [B] int not null,
  56. constraint [PK_Cs] primary key clustered ([Id]),
  57. constraint [FK_Cs_B_T_Bs] foreign key ([B]) references [T].[Bs] ([Id])
  58. );
  59. go
  60.  
  61. commit transaction;
  62. go
  63.  
  64. A : A;
  65. } where A in As && identity Id;
  66. // } where identity Id;
  67.  
  68. type A {
  69. Id : Integer32 = AutoNumber();
  70. } where identity Id;
  71.  
  72. As : A*;
  73.  
  74. type B {
  75. Id : Integer32 = AutoNumber();
  76. A : A;
  77. } where identity Id;
  78.  
  79. Bs : (B where value.A in As)*;
  80.  
  81. type C {
  82. Id : Integer32 = AutoNumber();
  83. B : B;
  84. } where identity Id && B in Bs;
  85.  
  86. Cs : (C where value.B in Bs)*;
Add Comment
Please, Sign In to add comment