Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for talex
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #292789 | Initial revision | — | 6 days ago |
Question | — |
Multiple versions of scala libraries detected! While compiling my `scala` project I'm getting following error. ``` org.scala-lang.modules:scala-parser-combinators2.13:2.4.0 requires scala version: 2.13.13 org.scalatest:scalatest2.13:3.2.19 requires scala version: 2.13.10 Multiple versions of scala libraries detected! ``` I understand ... (more) |
— | 6 days ago |
Comment | Post #292715 |
I don't see any flag button on tag page. (more) |
— | 15 days ago |
Edit | Post #292714 | Initial revision | — | 15 days ago |
Question | — |
What is the difference between `back-end` and `backend` tags? I found two tags: `back-end` and `backend`. Should we merge them? (more) |
— | 15 days ago |
Edit | Post #292651 |
Post edited: |
— | 24 days ago |
Edit | Post #292651 |
Post edited: |
— | 24 days ago |
Edit | Post #292651 | Initial revision | — | 24 days ago |
Question | — |
Json deserialization of enum, forbid int I have a DTO that contains an `enum` field: ```java @Getter @Setter static class Foo { Bar bar; } enum Bar { X, Y } ``` When I deserialize a JSON, it allows `int` as values: ```java var objectMapper = new ObjectMapper(); Foo foo = objectMapper.readValue(""" {"ba... (more) |
— | 24 days ago |
Comment | Post #292647 |
Just to make sure. You have `;` at end of each SQL statement in your scripts? (more) |
— | 25 days ago |
Comment | Post #292546 |
I notice that none of those using `-` is actually child tags. (more) |
— | about 1 month ago |
Edit | Post #292549 |
Post edited: |
— | about 1 month ago |
Edit | Post #292549 | Initial revision | — | about 1 month ago |
Question | — |
Tag full names. Currently we have composite tag names like `node:stream`. That tag have `Node.js` as its parent. I propose to display child tag with its parent, for example `Node.js:node:stream'. It will require renaming some composite tags and probably forbidding use of `:` (or other separator we decide to us... (more) |
— | about 1 month ago |
Comment | Post #292546 |
`java:stream` or `java-stream` will describe it perfectly.
Not sure what is naming convention here. (more) |
— | about 1 month ago |
Edit | Post #292545 | Initial revision | — | about 1 month ago |
Question | — |
I created a tag, now it need edit. I created `stream` tag, but can't edit it. It should at least have `java` as parent tag. (more) |
— | about 1 month ago |
Edit | Post #292544 | Initial revision | — | about 1 month ago |
Question | — |
Map<?, Optional<T>> to Map<?, T> I have a `Map` with `Optional` values. I want to filter it to remove empty values. ``` Map> input; Map result = input. // here is some code I'm looking for .collect(Collector.toMap(???)); ``` What is easiest way to achieve it? All I can think of requires `Optiona... (more) |
— | about 1 month ago |
Edit | Post #292474 | Initial revision | — | about 1 month ago |
Answer | — |
A: Execute SQL queries stored in a table I manage to solve my problem with next code: ``` do $$ declare sqltext text; sqllist text[]; begin sqllist := array( select c.sqltext from sqlcommand c ); raise notice 'start'; for sqltext in select unnest(sqllist) loop raise notice '%', sqltext; execute sqltext... (more) |
— | about 1 month ago |
Comment | Post #292472 |
I need mass rename primary keys in table (don't ask why, I don't know). So I generated DDL for that. Now I need to execute them. We have several databases, so I want script that easily portable.
I prefer to avoid creation additional stored procedures or functions. (more) |
— | about 1 month ago |
Edit | Post #292472 | Initial revision | — | about 1 month ago |
Question | — |
Execute SQL queries stored in a table Let's say I have a table with SQL statements in a column. I want to execute them all. ```sql create table sqlcommand( sqltext text ) ``` I know how to execute one SQL statement using `EXEC`, but I want to do it for all statements in the table. `exec (sqlcommand) from (select sqltext f... (more) |
— | about 1 month ago |