Re: How to concat UUID into a SQL query string to MariaDB

2019-08-27 Thread Jani Hur via Digitalmars-d-learn
On Tuesday, 27 August 2019 at 08:54:21 UTC, Anders S wrote: Hi again, the auto declaration worked as I expected my catenations should with the string Great to hear that ! Strings are a bit "different" in D. Please help yourself and read the following that IMO is the best introduction to the

Re: How to concat UUID into a SQL query string to MariaDB

2019-08-27 Thread Anders S via Digitalmars-d-learn
On Tuesday, 27 August 2019 at 08:30:50 UTC, Jani Hur wrote: On Tuesday, 27 August 2019 at 08:08:05 UTC, Anders S wrote: Any ideas? + is not a string concatenation. Try ~ instead: auto x = "aa" ~ "bb" ~ "cc"; Hi again, the auto declaration worked as I expected my catenations should with

Re: How to concat UUID into a SQL query string to MariaDB

2019-08-27 Thread Anders S via Digitalmars-d-learn
On Tuesday, 27 August 2019 at 08:30:50 UTC, Jani Hur wrote: On Tuesday, 27 August 2019 at 08:08:05 UTC, Anders S wrote: Any ideas? + is not a string concatenation. Try ~ instead: auto x = "aa" ~ "bb" ~ "cc"; Hi thanks for answer, but didn't help. Got this error instead : Error: cannot

Re: How to concat UUID into a SQL query string to MariaDB

2019-08-27 Thread Jani Hur via Digitalmars-d-learn
On Tuesday, 27 August 2019 at 08:08:05 UTC, Anders S wrote: Any ideas? + is not a string concatenation. Try ~ instead: auto x = "aa" ~ "bb" ~ "cc";

How to concat UUID into a SQL query string to MariaDB

2019-08-27 Thread Anders S via Digitalmars-d-learn
Hi guys, Using MariaDB to communicate between appz via FIFO pipe Now I stumbled on the next problem, how to extract UUID from database into an UPDATE query that is a string ( the sql variable ). Got in a loop: char [16][10] hash; for(i =0; i < count; i++){ auto hash1 = row[0]; hash[i] =