Questions tagged [inout]

98 questions
1
vote
1 answer

How to eliminate multiple call for function with few INOUT parameters in PostgreSQL

I porting a code from Oracle to PosgreSQL (classic, Carl). I found, that my function called 3 times, I make this simple example: Look please at my example: create function trak_test001(inout int,inout int, inout…
uudecode
  • 96
  • 1
  • 7
1
vote
2 answers

Swift: inout with generic functions and constraints

I am making my first steps in Swift and got along the first problem. I am trying to pass an array by reference using inout on an generic function with constraints. First, my application start point: import Foundation let sort =…
shadowhorst
  • 1,480
  • 13
  • 21
1
vote
1 answer

MySQL Store Procedure Parameters

I am currently working on MySQL stored procedures and I am fairly new to these. When do we need to use OUT parameter? With IN alone then having only SELECT statement at the bottom, the results will also be returned without having to call @OUT…
Dave
  • 37
  • 7
1
vote
2 answers

Does a SELECT statement make sense in a MySQL stored PROCEDURE?

My system: MySQL 5.6.12 Since you can't use a storede procedure in a SQL statement like a function, I'm wondering if there is any use for stored procedures which just have a SELECT statement but no OUT/INOUT parameter or do some…
John
  • 429
  • 3
  • 8
  • 20
0
votes
1 answer

Android Studio: libgdx scene2d: InputMultiplexer not working in release mode. Application crashes

I have put together a framework for a game that also works (several apps have already been created with this framework). Up to Gradle version 7.4.2, both build variants (debug - release) work perfectly. When upgrading to Gradle 8.1.1 only the debug…
HermannGo
  • 29
  • 3
0
votes
0 answers

Jmeter Callable Statement INOUT BLOB

I have a problem executing a JDBC request, connecting via jdbc:oracle:thin: as part of the request, a Blob type field is sent that contains a JSON inside, the main problem is that the BLOB must be parsed before executing the procedure, it does not…
0
votes
0 answers

splancs::inout function does not work properly, trying to make INLA prediction stack

Please see below code which is from the INLA prediction stack function. However when I run this my points are not selected from within the boundary. Nxy.scale <- 10 # about 10km resolution Boundary <- Mesh$mesh$loc[Mesh$mesh$segm$int$idx[, 2],…
0
votes
1 answer

Where to find "InOut\\" path in csharp?

I have a charp file and have created in JetBrainsRider -> Console Project. In main method, there is code as below static void Main(string[] args) { string FileNamePrefix = string.Empty; string InfoFileName =…
Aakash Patel
  • 549
  • 5
  • 19
0
votes
0 answers

How to fix closure "expects 1 argument, but 2 were used in closure body" when using enumerated().map

I have the following Swift code which uses enumerated().map to index my modeStrings: let modeNames = [ "Rest: ", "Misbalanced: ", "Left Charged: ", "High Voltage: ", "High Temperature: ", …
Dylon Jaynes
  • 166
  • 11
0
votes
1 answer

Why is Postgres throwing "ERROR: procedure returned null record"?

Below is a dummy query that returns no records: WITH no_records AS ( SELECT usesysid AS id, usename AS value FROM pg_user WHERE usename = 'non-existent-user' ) SELECT jsonb_build_object( 'id', id, 'value', value ) FROM…
Chris Kobrzak
  • 1,044
  • 14
  • 20
0
votes
1 answer

Pass immutable variable with inout

I create an object in ContentView of a class and pass it to a function @StateObject var portfolio = Portfolio() ... ///Cannot pass immutable value as inout argument: 'portfolio' is a get-only property setCoin(portfolio: &portfolio, currencyList:…
San X
  • 63
  • 7
0
votes
0 answers

Is using `std::shared_ptr` for in/out variables reasonable?

I need some advise regarding usage of std::shared_ptr for In/Out parameters. Is having something like std::shared_ptr expensive_process(std::shared_ptr foo) { // process foo ... return foo; } considered bad practice (as…
mmirzadeh
  • 6,893
  • 8
  • 36
  • 47
0
votes
2 answers

Swift - Pass inout parameter to scheduledTimer

Is there a way to pass an inout parameter through a scheduledTimer method? I want a specific value(disable Button until timer has run out). func Timer(Hz:TimeInterval, Activate: inout Bool, time:Double=10){ let info = ProcessInfo.processInfo …
0
votes
1 answer

Error "Inout argument could be set to a value with a type other than ..." when passing in a protocol type

I am coming from C++ to Swift. I have this situation with respect to protocols and structs (I am working with random numbers): (1) A protocol RandomPr that specifies there are methods such as randFloat() that returns a Float between 0 and 1. (2) A…
0
votes
3 answers

How to accept only characters to text area with Turkish characters?

here is my code for a textareainput to accept only characters not numbers. var harfInput1 = document.getElementById('graduated_university_country'); harfInput1.addEventListener("keyup",function(){ if (harfInput1.value.match(/[^a-zA-Z'…