@11:
1:1 could be a degraded 1:N relationship or
by inheriting from a base class as mentioned earlier: "Employee Extends Person"
many-to-many can be covered as M:N relationship as I described in my article 3 years ago.
- Log in to post comments
@11:
1:1 could be a degraded 1:N relationship or
by inheriting from a base class as mentioned earlier: "Employee Extends Person"
many-to-many can be covered as M:N relationship as I described in my article 3 years ago.
@9.9. storage is generated once if not existing yet.
you may change it manually (typically data location global) as long as there is nothing stored yet
otherwise you lose the existing content. Or you copy it to the new location.
My article The adopted Bitmap shows such an example [actually also in contest}
6 & 7 are side effects of object inheritance.
Think of a class Person.
But Employee Extends Person
Similar Students Extends Person too
So you have 3 tables but all are Persons Some with extension some not.
@6: Table Employee corresponds to class Person and to class Employee
@7: So class person corresponds to Table PERSON, EMPLOYEE , STUDENT
#20. Is slightly exaggerated
official docs present it differently.
https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=ITECHREF_json
https://docs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls?LIBRARY=%25SYS&CLASSNAME=%25Library.DynamicArray
Depending on the environment you use embedded SQL the variable SQLCODE may not reach you. This is related to variable scoping. Therefore it is better to use any variant of Resultset.
For variable scoping see my article here
Nice! Only 666 characters in sequence.
A mystic number
I like it
<CLASS DOES NOT EXIST>%Close...
is typical if try to access resultset or just delete rset after leaving namespace %SYS.
Just reproduced it.
%SYS>w !,rset.%Next(),?5,rset.%Get("Directory"),!?30,rset.%Get("Size"),?40,rset.%Get("MaxSize")
1 c:\intersystems\iris\mgr\enslib\
163 Unbegrenzt
%SYS>ZN "USER"
USER>k rset
<CLASS DOES NOT EXIST>%CloseCursor+3^%SQL.ClassQueryResultSet.1 *SYS.Database
USER>#1 there is no "SELECT LAST_SERIAL()"
#2 depending what your expectation on LAST is I see 2 possible workarounds
#2A LAST = max: "SELECT MAX(test_id) FROM test"
#2B LAST = latest: "SELECT test_id, MAX(ID) FROM test GROUP BY 2"
#2B is based on the fact that you always have an auto-incremented ID and it's a shortcut of
"SELECT test_id FROM test where id = (SELECT max(ID) from junior.test)"
or
"SELECT TOP 1 test_id FROM test WHERE ID < 999999999999999999 ORDER BY ID DESC"
So, as by docs.
SQLCODE=100 indicates that the SQL operation was successful,
but found no data to act upon
https://docs.intersystems.com/iris20201/csp/docbook/Doc.View.cls?KEY=RERR_sql#RERR_sql_noerr
There is my example in OEX: Light weight EXCEL download
if you omit the special setting of type, it is a normal html table.
What I asked for:
In your Method written in Objectscript, after
&sql(update X_X.X set LocalEnvironment=1 where %ConfigName IN('X_X_X', 'Y_Y_Y'))
Variable SQLCODE holds a success / failure code. That's what I asked for.
see this example:
https://docs.intersystems.com/iris20201/csp/docbook/Doc.View.cls?KEY=GSQL_esql#GSQL_esql_syntax_ampsql
or
https://docs.intersystems.com/iris20201/csp/docbook/Doc.View.cls?KEY=GSQL_esql#GSQL_esql_code_literals
and
https://docs.intersystems.com/iris20201/csp/docbook/DocBook.UI.Page.cls?KEY=RERR_sql#RERR_C136606
You may stick with '/' and run $TRANSLATE(record,"/","~")
just before writing the record to your file.DAT
did you try ! or ? instead of ~
since ~ might be a reserved default separator to HL7
"Gives me CSP Application error" -- which one ?
What does SQLCODE tell you after your embedded SQL query?
What is your real $ZV ?
Thanks for the fast reaction !! ![]()
Thanks! lt was a cut/past from my mail
@Daniel Tamajon
I'm using GitHub in browse to create this project. https://github.com/rcemper/try_embedded_python
How is the quality check started / triggered ?
Is some minutes > 20 minutes ?
OK. I did node.js,
@Yuri Marx Java is yours.
I was searching this but looked for ManagerDirectory instead of InstallDirectory
write $replace(##class(%File).ManagerDirectory(),"mgr","lib")
independent of OS!
All %R* routines are hidden in IRIS for good reasons.
And they just survived for backward compatibility not for common use.
And they use ZS ZI, ... and $Compile() function. ... and a bunch of $ZU(..)
Manipulating routines from Terminal is not covered. VScode or Studio is expected and supported
If you edit .INT routines from the terminal in the old MUMPS style using
ZLOAD, ZSAVE, edit by X ^%
you operate at a lower level than Studio, VScode, Atelier,...
and deeper than any Source Control Hooks.
Neither belt nor suspenders are available anymore.
It's like heart surgery: Either you fix it or your patient is gone.
the second line of the error msg tells you that SQLserver raised error 102
This error occurs when Adaptive Server detects a syntax error in a Transact-SQL® command or query. This error can occur when: A keyword is misspelled. ... You used a variable for a database name and your query contains a parser error; error 102 is raised because the batch was never executed.
from:
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc00729.1500/html/errMessageAdvRes/CHDGFCCJ.htm
suggestion: Check the SQL-name of the generated class samples.people
all you have to take care are ip ports. but that's not magic
Developing in the production environment is "high-risk extra class".
This doesn't exclude to do development on the production SERVER (e.g by lack of HW)
The most simple option is to have 3 namespaces in parallel. PRODUCTION (aka WORK), TEST, DEVELOPMENT.
A better variant is to have a 2nd instance on the same SERVER machine for TEST & DEVELOPMENT.
Git doesn't care which Instance you use.
ZMP is not availaible in Caché.
Docker is theoretically possible but quite an effort as you need to build your own image especially for a WIN environment and get the appropriate license for it.
set diff=3600 ; time in sec
set new=$zdth($zdt($h,-2)-diff,-2) ; new $h - 1 hour
Thank you for the link.
My urgency has changed meanwhile and I don't have access to the data source anymore.
Nevertheless, the problem is a general one.
Line 1:
<?xml version="1.0" encoding="UTF-8"?>
Check all <? tags if they only contain ASCII characters (no UTF yet)
Offset 106 indicates that it is rather at the end of line.
Could be some windows newline <CR><LF> instead of Linux/Unix newline <LF> or similar
So, what's wrong with that?