I perform design in cache and it looks like it does not allow multiple insert, i.e.
insert into Ruler (...) values (...), values()....
or
insert into Ruler (...) values (...), (....)
So I decided to create method to perform insert. The problem - it does not work. Each insert is fine. Delete also worked, but not insert. No error, just empty table.
Method Fill() As %Integer
{
&sql(insert into Ruler (nameRuler, biography, idRuler)
values ('Peter the Great','Born in Moscow, Russia on June 9, 1672, Peter the Great was a Russian czar in the late 17th century who is best known for his extensive reforms in an attempt to establish Russia as a great nation. He created a strong navy, reorganized his army according to Western standards, secularized schools, administered greater control over the reactionary Orthodox Church, and introduced new administrative and territorial divisions of the country.', 1)
)
&sql(insert into Ruler (nameRuler, biography, idRuler) values ('Boris Godunov','was de facto regent of Russia from c. 1585 to 1598 and then the first non-Rurikid tsar from 1598 to 1605. The end of his reign saw Russia descend into the Time of Troubles.', 2))
//&sql(delete from Ruler)
&sql(SELECT COUNT(*) INTO :count
FROM Ruler)
Quit "Total: "_count
}
Any ideas???