Problems with string literals and etc.c.odbc.sql functions
    Fer22f via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Fri Dec 18 16:26:00 PST 2015
    
    
  
On Friday, 18 December 2015 at 22:18:34 UTC, Adam D. Ruppe wrote:
> That's what the examples on MSDN do too though, a cast. At 
> first I thought the binding was missing a const, but the ODBC 
> docs don't specify it as const either and cast.
The ODBC functions also have a size parameter for string 
parameters. You can set it to SQL_NTS to use the 0 terminated C 
standard. Might justify on why it's char* instead of const char*.
It looks like it's alright, then. Just one implementation detail 
I didn't notice before.
    
    
More information about the Digitalmars-d-learn
mailing list