Somewhere in your data structure you have a property / Column of type DATE the content seems to be a null_string (string of length zero) instead of a real SQL NULL (empty, no value) My guess: it's one of the 8 Dob ( Date of Birth ?) named fields check the related contents
go to post
Looking forward to hear your story!
That's often of much more value than the pure code..
go to post
Somewhere in your data structure you have a property / Column of type DATE
the content seems to be a null_string (string of length zero) instead of a real SQL NULL (empty, no value)
My guess: it's one of the 8 Dob ( Date of Birth ?) named fields
check the related contents
go to post
Congratulations and big THANKS @Alberto Fuentes
go to post
Similar to previous years I will provide the results of our private leaderboard
DCrank AOCrank Scores Stars ok% ----- Code Parts OK ----- Name 0 --- ---- ---- --- ----*----*----*----*----* --- DC Members --- 1 7 7361 50 100 3333333333333333333333333 abdul-manaan 2 8 7296 50 100 3333333333333333333333333 Yuval Golan 3 9 5310 36 72 3333333333333331331------ JFerreB 4 11 2598 18 36 333333333---------------- Peter Zubiago 5 13 2537 17 34 333333331---------------- Oskari Kosonen 6 14 2052 14 28 3333313---1-------------- Keith Avery 7 15 1928 13 26 3333331------------------ Jani Hurskainen 8 17 1639 11 22 333311--1---------------- Ivo ver eecke 9 18 1278 9 18 33331-------------------- TylerFeldhege 10 21 875 6 12 333---------------------- rhodery 11 23 695 5 10 331---------------------- Chris Marais 12 24 565 4 8 33----------------------- Oliver Wilms 13 --- ---- ---- --- ------------------------- --- ISC internals --- 14 2 7592 50 100 3333333333333333333333333 TestSet 1 15 3 7545 50 100 3333333333333333333333333 TestSet 2 16 22 811 6 12 333---------------------- Junhee Lee 17 --- ---- ---- --- ------------------------- --- unknow in DC --- 18 1 7683 50 100 3333333333333333333333333 Dominik Znidar 19 4 7540 50 100 3333333333333333333333333 Joaquin Derrac Rus 20 5 7539 50 100 3333333333333333333333333 Jarjar 314 21 6 7527 50 100 3333333333333333333333333 (anonymous user #1128565) 22 10 3295 23 46 3333313-1331311---------- (anonymous user #4293990) 23 12 2569 18 36 33333-331-1-3------------ Sloan Kanaski 24 16 1902 13 26 33331111--1-------------- Chhayank Warad 25 19 1083 8 16 3333--------------------- Noah Dohrmann 26 20 1064 8 16 3333--------------------- (anonymous user #214666) 27 25 427 3 6 31----------------------- Gary Nguyen 28 Rows(s) Affected UTC 2024-12-30 08:28:42 EST 2024-12-30 03:28:42
go to post
Hi @Jeffrey Drumm ;
different approach: use your own datatype that always returns fixed MAXLEN string:
/// Make fixlength String according to MAXLEN parameter Class rcc.GetFix Extends %Library.String { /// Fill value <var>%val</var> to <a href="#MAXLEN">MAXLEN</a> characters. Method Get() As %String [ CodeMode = generator, ServerOnly = 1 ] { set code="$e(%val_"""_$j("",+%parameter("MAXLEN")) set code=code_""",1,"_+%parameter("MAXLEN")_")" $$$GENERATE( " Quit "_code) QUIT $$$OK } }
and a test class:
Class rcc.FixTest Extends %RegisteredObject { Property test As rcc.GetFix(MAXLEN = 12); }
and now some check from terminal:
SAMPLES>set z=##class(rcc.FixTest).%New() set z.test="rob" SAMPLES>write z.test,$L(z.test) rob 12 SAMPLES>;some oversized string SAMPLES>set z.test=";some oversized string" SAMPLES>write z.test,$L(z.test) ;some oversi12 SAMPLES>
Hope this helps you along
go to post
My guess:
go to post
#2)
Every LOCK persists until the process is ended or the LOCK is removed explicitely (LOCK -....)
it is not related to any error handling.
#1)
depends on your design.
If there is no conflict of subscripts between ADD and REMOVE possible there is no need of a Lock
go to post
no need for this COPY
if your docker-compose.yml contains
volumes:
- ./:/home/irisowner/dev
go to post
So comparing .CLS to .MAC/.INT is like comparing a goat to the final cheese you buy.
go to post
video added https://youtu.be/fl0SDt-rxAU
go to post
go to post
A few questions:
go to post
To get the property position dynamically by program you may use this ClassMethod
ClassMethod PropSeq(classname As %String = "", propname As %String = "") As %String [ SqlProc ] { if classname="" set classname=..%ClassName(1) set pos=0 &sql( SELECT SequenceNumber INTO :pos FROM %Dictionary.CompiledProperty WHERE transient=0 AND parent=:classname AND name=:propname ) if SQLCODE set pos="-1;"_SQLCODE quit pos }
go to post
a somewhat 'dirty' approach
select ID, Name_GivenName from Demo.DemoPatient where FOR SOME %ELEMENT(Demo.DemoPatient.Aliases) ($LISTFIND(%value,'Twain')>0)
advantage - no need to know the structure of your serial class
risk - false positives for unexpected coincidences. eg. Washington, John, ...
go to post
the example builds on the fact that the storage structure of the serial object is known
in this case color is #3 in serial storage ==>> $list(%Value,3)
So you need to know the position of FamilyName in HS.SDA3.Name (e.g.7 ?)
then you can use $list(%value,7) = 'Twain' as condition
7 is just a guess as I don't have any HS* classes at hands
go to post
This article is focused on indexing, though it shows the principle of the SQL query
Effective use of Collection Indexing and Querying Collections through SQL
go to post
THX. Never used it before
go to post
it applies to any code in ObjectScript
go to post
start here in docs
go to post
BIG THANKS!
That soved the problem
It's a shame that the owner of the package didn't react to the ISSUE on Github or OEX for 3 months