Comments (6)
I'm just eyeballing from my phone but it seems that the routine_name would be null.
I'm not super knowledgeable about Informix but it does SELECT p.procname || '(' || ifx_param_types(p.procid) || ')' AS routine_name
Which contains concatenation so it should never be null.
If you manually run
SELECT p.procname || '(' || ifx_param_types(p.procid) || ')' AS routine_name,
case p.isproc when "f" then "Function" when "t" then "Procedure" end as routine_type,
ifx_ret_types(p.procid) as dtd_identifier,
l.langname as routine_body,
b.data as routine_definition, b.seqno, 'N/A' as sql_data_access, case LOWER (p.mode) when "d" then "DBA" when "o" then "Owner" when "p" then "Protected" when "r" then "Restricted" when "t" then "trigger" end as security_type,
p.variant as is_deterministic, "N/A" as routine_comment
from sysprocedures p
join sysroutinelangs l on p.langid = l.langid
join sysprocbody b on p.procid = b.procid and b.datakey = 'T'
order by p.procid, b.seqno
You don't get any rows with an empty routine_name
column?
Wonder if it could be a strange join or anything related to access, if the queries are run with different accounts.
Since it seems that the query executes correctly but there is an issue with the returned data.
from schemaspy.
I had already ran the query manually and it works fine.
I has no procedure with procname or procid = NULL.
I'm currently reviewing the procedures to see if anything gives me a clue to which one might be the culprit.
I'm also going to try a different DB on the same server.
I can also try to drop all the procedures and recreate them by sets of 50 at a time to narrow it down to the offending code.
from schemaspy.
I've found the problem.
Several procedures had variables defined "like db:table.column".
This was messing with ifx_param_types and ifx_ret_types which returned null for the param_types
from schemaspy.
Could you create procedure that has the issue and post here so that I can have a look at how we can handle it. I assume that it's supported by informix so we should handle it in SchemaSpy.
from schemaspy.
I can create two situations:
In this case, table contrato does not exist. This makes ifx_param_types return null
create procedure proctest1(oTipoProposta like contrato.ctotipo, aProposta like contrato.ctonum )
returning int, char(50), char(255), char(512) ;
return 0, " ", "", "";
end procedure ;
In this case its a combination of 2 things:
- user "usr does not exist on the databse
- there's a variable defined with like to another database
create procedure "usr".proctest2( aTabela char(18), aDescricao integer)
define oModulo like dbadm:tabela.modulo;
let oModulo = "leaseDBAdm";
end procedure;
from schemaspy.
Nice, thanks
from schemaspy.
Related Issues (20)
- [proposal/improvement] option to hide functions from the docs
- Sqlite Generated Columns fire InconsistencyException and create wrong diagrams HOT 2
- Separation of configurations HOT 1
- Warning: cell size too small for content in label of node user HOT 1
- Parent, Rows, Children in diagram looks bad
- Publish exactly the same jars HOT 4
- Incorrect parent/child count in relationships implied graph
- Orphans diagram has all nodes on same rank creating a long list HOT 5
- Docker release image use same artifacts as maven
- Release issues HOT 4
- Replace GH pages for snapshot with OSSHR
- Configuration problem for TeraData (schema) HOT 4
- Exclude table option (-I ) not functionning HOT 12
- schemespy is not creating folder HOT 2
- [Feature request] Add table description to the relation diagrams
- Incorrect edge rendering with latest graphviz HOT 2
- SchemaSpy: Error: java.lang.UnsupportedClassVersionError HOT 2
- Wrong queries for Postgres HOT 3
- Add a "comment" column to a table of routines parameters. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from schemaspy.