Also a candidate for the 1 liner category
- Log in to post comments
Also a candidate for the 1 liner category
much better than the official SQL extension.
It was never a question of this could have been done differently
As I understand it, the important point is that IRIS has some role to play
I checked multiple namespaces. All look identical..png)
everywhere the same picture.
That %Zpy* is stored in IRISSYS.
BTW: the subscript mapping is identic to rMAC in IRIS and also in historic Caché. versions
I just learned here that "NAMED PIPE" is significantly different in
So my workaround (by accident) turns out to be better for my needs than the Linux FIFO feature
as I'm able also to read partial lines and don't need newlines or similar as separators.
it was kind of Lucky Punch
GREAT !
I also did some experiments using netcat in my container.
Using Ubuntu pipe files works somehow. But it was not convincing.
Ubuntu experts may do it better.
CPIPE ../WRITE works here https://github.com/rcemper/java-global-editor
set cpipe="|CPIPE|1"
,cmd="cd /opt/irisapp/ && java gedi > g.log"
open cpipe:(cmd:/WRITE)
;; later in loop
use 0 read "?:",opt,!
use cpipe write opt,!
;;;With NPIPE I just was lost ,
OPEN hangs or has timeout....
no idea ; Could be the Ubuntu side in Docker was wrong.
I did something similar a year ago in my WebCommand using CPIPE
added clickable link https://www.intersystems.com/global-summit/
THANK you @Iryna Mologa
Thank you @Iryna Mologa !
PR is merged OK
Good point !
None of my machines fit. Ivy Bridge is not on your list.
Would this mean IRIS 2023.* is the last version I can use without major investments in hardware?
the correct syntax
ccontrol [ run OR console OR cterminal ] <instance name>
Runs Caché in programmer mode with
[ no-device OR console OR cterminal ] for $Principal
???
be more specific
try this dirty hack:
the code fails already for start year 1924 <NULL VALUE>
and is in principle wrong 🙁
From my IBM-360-Assembly programming times in the late 60ties
If your code is running hard,
apply a switch to make it smart
instead of strange constructs that are hard to follow,
I would just take the pragmatical way and add a param SUPER=0
Class SubClass Extends MyClass
{
ClassMethod Foo(SUPER = 0 )
{
if SUPER do ##super() quit
. . . . .
do ##super() // <----
}
}The efficiency is evident also to less sophisticated programmers
You may place a PRODLOG at WRC;
And it might be changed in some future release.
Congrats!
I suspected the error to be outside SQL
👍
Are you sure the 2nd parameter of the stored procedure is of type %String(MAXLEN="") without length limit?
ERROR: - OK
which error ?? pls. be specific with all details
hint for SQL Escaping
but test in SQL Shell shows no problem
USER>do $system-.SQL.Shell()
SQL Command Line Shell
----------------------------------------------------
The command prefix is currently set to: <<nothing>>.
Enter q to quit, ? for help.
USER>>select 'HbA1cTests.sort(''testDate'',false)[0].resultValue'
1. select 'HbA1cTests.sort(''testDate'',false)[0].resultValue'
HostVar_1
HbA1cTests.sort('testDate',false)[0].resultValue
1 Rows(s) Affected
statement prepare time(s)/globals/lines/disk: 0.0002s/5/166/0ms
execute time(s)/globals/lines/disk: 0.0002s/0/385/0ms
cached query class: %sqlcq.USER.cls117
---------------------------------------------------------------------------
USER>>Congratulations! $INCREMENT always works!
Congratulations You could finally work around the issue.!
Simplified:
WIJ is the on-disk image of your modified buffers.
If buffers are changed they get updated on-disk by an asynchronous background process.
The modified date is typically the last modification at file close.
writing modification date at every file update as you expect will break every file system.
Transposing your expectation to a text editor would mean to update the file and date at every new line:
I suppose you would be disappointed by the related performance reduction.
Though, from personal experience, this seems to be the standard operating style of almost every government.😉