Giter VIP home page Giter VIP logo

Comments (3)

MaceWindu avatar MaceWindu commented on June 12, 2024 1

@Nevega you can see all errors using code like that:

var schema = db.DataProvider.GetSchemaProvider().GetSchema(db, new GetSchemaOptions()
{
	GetProcedures = true,
});

foreach (var proc in schema.Procedures)
{
	if (proc.ResultException != null)
	{
		Console.WriteLine($"Procedure: {proc.ProcedureName} : {proc.ResultException.Message}");
	}
}

from linq2db.

MaceWindu avatar MaceWindu commented on June 12, 2024

Provided database trigger issue with LINQPad driver we need to fix - procedures scaffold result in NRE exception.

Regarding original issue: many procedures in database failed to load it's schema. E.g. for GOOD$KITEXPQUANTS we have this error:

Error while parsing procedure GOOD$KITEXPQUANTS's BLR
invalid request BLR at offset 2
function IFI is not defined
module name or entrypoint could not be found

This is not a blocking issue for procedure, but because Firebird procedure could be used as Table function we mark them as Table function. And for table function lack of schema results in function skipping as we cannot define function mapping without known result schema.

How it could be workarounded:

  • user could use interceptor to mark loaded function as procedure so we will generate mapping which doesn't return any tables
  • user could fix it's database to not throw such errors

What we should fix on our side:

  • as we can scaffold procedure as procedure or table function, we should fallback to procedure scaffold for firebird if we cannot load it's schema

from linq2db.

MaceWindu avatar MaceWindu commented on June 12, 2024

@Nevega,

As for interceptor approach workaround you need to look at those methods https://linq2db.github.io/articles/CLI.html#schema-load-interceptors, but I'm not sure it is not too late to fix it there

from linq2db.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.