-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schema browser search/filter #247
Comments
Please share where this is referenced. Is in our docs or in the extension itself? I will look into solving this for you this week. |
Hi Liam,
This is referenced in the DB2 for i extension. Clicking the "Magnifying
Glass" icon next to a schema shows the "Set filter..." prompt off to the
right.
[image: image.png]
As an example, in the prompt if you enter, "audit_" you'll find results in
the SYSTOOLS schema. If you instead search for "a_", I'd think you'd find
nothing (since nothing starts with "a_", however results are shown.
[image: image.png]
[image: image.png]
I hope this helps to clarify. While the "a_" search isn't a
great/practical example, it's a close representation to a search that we'd
do in our environment for "v_" denoting views by that prefix.
Thanks Liam
…On Mon, Jul 22, 2024 at 3:32 PM LJ ***@***.***> wrote:
@jkdavew <https://github.com/jkdavew>
the help says "show objects that start with this value"
Please share where this is referenced. Is in our docs or in the extension
itself?
I will look into solving this for you this week.
—
Reply to this email directly, view it on GitHub
<#247 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADYV4QMSJTUZBFXTTAYNDWTZNVM4RAVCNFSM6AAAAABLCSDVZ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBTGY3TCMJYGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@jkdavew I just realized while working on a security fix I may have broken this in the next release. Here is how we're building the filter clause now: |
Ok, yeah I see it was a pretty significant change and that Julia is working on a fix related to it. |
Type: Bug
When using a schema browse/filter, the help says "show objects that start with this value" but I'm finding it's doing a "contains" search instead.
Also noticed that underscores aren't handled too well. If I search for v_ (my goal finding views that start with that pattern), it's finding many more things (and the _ isn't factored in). I have a feeling it could be due to the underscore in a LIKE statement. The snippet below "may" help resolve the issue using v_ as the search example.
Presumed this is currently being done:
like '%V_%'
Adjusted:
like 'V_%' escape ''
Suggestion: if underscores appears in the browse/filter, prepend with a backslash.
Keep up the good work!!
Extension version: 1.0.0
VS Code version: Code 1.91.1 (f1e16e1e6214d7c44d078b1f0607b2388f29d729, 2024-07-09T22:06:49.809Z)
OS version: Windows_NT x64 10.0.22631
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: