Replies: 2 comments 1 reply
-
You could wrap your SQL code in
The other approach is get Oracle's Pro*C compiler developers to contribute changes to the edg compiler we use (https://www.edg.com/c), similar to how we integrated support for the CUDA language extensions by NVIDIA. However, our compiler team would have to agree to hook up the necessary changes. |
Beta Was this translation helpful? Give feedback.
-
Well, the " |
Beta Was this translation helpful? Give feedback.
-
My project has lots of C code with embedded SQL processed by the Oracle Pro*C precompiler. (https://en.wikipedia.org/wiki/Pro*C)
The SQL code is prefixed by "exec sql" (case insensitive) and terminated by a semi-colon (;), possibly multiple lines.
For example:
exec sql select count(*)
into :PayerCnt
from t_re_pat_liab
where sak_recip = :sakRecip;
How can I configure the VScode C/C++ extension to not consider this to be an error?
My SQL-C source files are named *.sc and in settings.json I can make them be recognized as C code like this:
"files.associations": {
"*.sc": "c"
}
Beta Was this translation helpful? Give feedback.
All reactions