go to post Robert Cemper · Oct 25, 2021 this looks like "python" is not recognized in the spawned processYou may try a full reference "C:\......python.exe...."
go to post Robert Cemper · Oct 25, 2021 In a terminal session you have a process and $ZF(-1) starts a child processFrom Studio this is definitely different as Studio uses a different type of connection using SuperServer port.https://docs.intersystems.com/iris20211/csp/docbook/DocBook.UI.Page.cls?KEY=RCOS_fzf-1
go to post Robert Cemper · Oct 25, 2021 studio is not a real terminal with an isolated session context.
go to post Robert Cemper · Oct 25, 2021 If this is your container from GitHub I had no problem on oct.22, ~22:00 (CEST)BUT:- I run all docker just from the Win CMD line- docker system prune -f to clean away all old junk- docker-compose build no extra flags- docker-compose up -d works as expected- docker-compose logs to verify the startup
go to post Robert Cemper · Oct 23, 2021 "know for a fact that is possible to have multiple statements within a single query"I wasn't aware of such a feature over the decades.So it might be wise to get in contact with your personal Sales Engineer or contact WRC
go to post Robert Cemper · Oct 23, 2021 So put it in a Stored procedure and deposit the conditions in a table.Could be a classical case to use indirection or eXecute Whether maintaining a table or 70000 different WHERE should be the same effort.At that point: Why to use SQL DELETE at all ?
go to post Robert Cemper · Oct 23, 2021 I like your PY solution. That's a promising aproach.Especiallly now with Embedded Py
go to post Robert Cemper · Oct 23, 2021 BUT: if you intend to have tablename1, tablename2, tablename3, ...you better wrap it in a ClassMethod and project it as Stored Procedure
go to post Robert Cemper · Oct 23, 2021 what about simply using OR in your SQL: DELETE FROM TableName WHERE ID = 2 OR ID = 3 OR ID = 4 OR <whaever condition> OR <whaever other condition>
go to post Robert Cemper · Oct 22, 2021 Ah, that's something different.You require a conversion table by location + a time range when DST is to be applied! Location is a static thing to be defined once.DST is a real challenge as it depends on the region and requires annual adjustment by location.Including the chance that Europe may split up next year or drop it at all.It might make sense to get it from an external government source by country.it is definitely not included in any InterSystems product.
go to post Robert Cemper · Oct 22, 2021 as by docs.By default $ztz shows you geographic offset of your server to Greenwich. No DST !so for Madrid "write $ZTZ" => -60
go to post Robert Cemper · Oct 22, 2021 I see 2 principal ways: using $ZDateTime(), $ZDateTimeH() function to convert your timestamp to Posix Format and then add or subtract whatever seconds offset you require, with the advantage to easily cross day boundaries or to use system variable $ZTIMEZONE to adjust the timezone of your actual process independent of the system's time zone by any number of minutes
go to post Robert Cemper · Oct 21, 2021 I miss my code quality!Satisfying these "rules" kept me more busy than the rest of the code
go to post Robert Cemper · Oct 20, 2021 Nothing prevents you to have such rules as part of your object definition.And all the code to define this is definitely part of Caché or IRIS.Caché and IRIS have excellent SQL support and projection of objects to simple tables.But you should not try to compare an Object database to any relational database.Just as a comparison, you won't ask: Why does a 747 not have red blinking warning lights at his back like a yellow school bus? In reverse the 2 you mentioned try to mimic features of an Object database. With limited success.
go to post Robert Cemper · Oct 18, 2021 if you don't have the fitting Dockerfile + docker-compose.yml your installation might end in troublesI'd suggest using one of the ready-made templates.https://github.com/intersystems-community/objectscript-docker-template or any other from OEX https://openexchange.intersystems.com/
go to post Robert Cemper · Oct 18, 2021 As by default is READ ONLY as with any installation and you are well-advised not to change this.What container image do you start ?