According to the ANSI SQL-1992 standard, page 132, this is the syntax for the ANSI substring function:
What (if any) are some potential problems with a C++ macro usage like this? Would an inline function be a more appropriate solution?