Code Monkey home page Code Monkey logo

Comments (12)

PhilippSalvisberg avatar PhilippSalvisberg commented on June 19, 2024 1

It's not working.

from utplsql-sqldeveloper.

jgebal avatar jgebal commented on June 19, 2024

@phsalvisberg
I would need to double check but I think it was reliable before.
Only develop (3.1.8-develop) had a bug as I went too far with optimizetions.
Let me check change history to see.

from utplsql-sqldeveloper.

PhilippSalvisberg avatar PhilippSalvisberg commented on June 19, 2024

@jgebal I checked. My JUnit test case fails with 3.1.7. All functions return false instead of true, because they do not update the annotation cache (without using the DDL trigger). I have not tested that with 3.1.8 yet. Maybe this is an issue there as well.

from utplsql-sqldeveloper.

jgebal avatar jgebal commented on June 19, 2024

The functionality was introduced in this change

Since then it wasn't changed until this change and then this change in 3.1.8-develop

I'm no sure why the functions don't work for you in 3.1.7. They should as they should update cache.
Perhaps it's not worth digging in old versions.

If this didn't work for you before 3.1.8, lets leave it active since 3.1.8 only.

from utplsql-sqldeveloper.

PhilippSalvisberg avatar PhilippSalvisberg commented on June 19, 2024

The problem is that has_suite, is_suite and is_test do not check if the annotation cache is up-to-date. This is a problem when you install utPLSQL with install_headless.sql instead of install_headless_with_trigger.sql. Hence this works in the develop environment and in our CI environment where install_headless_with_trigger.sql is used behind the scenes. These functions do not deliver a reliable result. Even in 3.1.8 :-(

from utplsql-sqldeveloper.

PhilippSalvisberg avatar PhilippSalvisberg commented on June 19, 2024

IMHO the functions should check if the DDL trigger is active. If not they have to update the annotation cache first. Similar logic as in get_suites_info.

from utplsql-sqldeveloper.

PhilippSalvisberg avatar PhilippSalvisberg commented on June 19, 2024

If this will not be fixed in 3.1.8 I'll have to undo this change.

from utplsql-sqldeveloper.

jgebal avatar jgebal commented on June 19, 2024

They do, and they always did.
line

    refresh_cache(l_owner_name);

Is responsible for doing the check and cache refresh.

from utplsql-sqldeveloper.

jgebal avatar jgebal commented on June 19, 2024

I can have a look at this in the evening.

from utplsql-sqldeveloper.

PhilippSalvisberg avatar PhilippSalvisberg commented on June 19, 2024

@jgebal Why have you reopened this issue?

from utplsql-sqldeveloper.

jgebal avatar jgebal commented on June 19, 2024

Because we're discussing it and As you said, you might need to revert the change.
Feel free to close if you want. I can open a different issue on utPLSQL

from utplsql-sqldeveloper.

PhilippSalvisberg avatar PhilippSalvisberg commented on June 19, 2024

Ok, I checked it again.
It works as expected (without trigger) in v3.1.8.
It does not work (without trigger) in v3.1.7. JUnit test fails.
Hence I close this issue.

from utplsql-sqldeveloper.

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.