morm/samples
Tomasz Sowa 133a45c84b Added flag has_primary_key_set to Model
Now we know whether the primary key is defined or not
and we do not allow to make update/remove if the key is not defined.

And when doing insert/update we can put NULL if child models don't have
the primary key set (fields with has_foreign_key set to true).

Now in after_select() we should also set has_primary_key_set flag
or just call get_last_sequence_for_primary_key instead of get_last_sequence.

fixed: added prefix +00 when serializing PT::Date to PostgreSQL (time zone)
(for a column with a time zone there was a wrong value saved)
2021-03-09 18:10:34 +01:00
..
Makefile Added flag has_primary_key_set to Model 2021-03-09 18:10:34 +01:00
Makefile.dep Added flag has_primary_key_set to Model 2021-03-09 18:10:34 +01:00
Makefile.o.dep added 'samples' directory for samples and tests 2019-08-21 15:59:03 +00:00
attachment.h Added flag has_primary_key_set to Model 2021-03-09 18:10:34 +01:00
attachment2.h Added flag has_primary_key_set to Model 2021-03-09 18:10:34 +01:00
basesample.h added 'samples' directory for samples and tests 2019-08-21 15:59:03 +00:00
language.h Added flag has_primary_key_set to Model 2021-03-09 18:10:34 +01:00
main.cpp added support in Model for removing the whole tree 2019-09-05 16:32:35 +00:00
person.h Added flag has_primary_key_set to Model 2021-03-09 18:10:34 +01:00
sample01.h Added flag has_primary_key_set to Model 2021-03-09 18:10:34 +01:00
type.h Added flag has_primary_key_set to Model 2021-03-09 18:10:34 +01:00