Questions tagged [reserved-words]
reserved words are specific words in any language which are banned from use by authors, because of the special meaning they have in the language.
341
questions
0
votes
1
answer
173
views
What is wrong with operator"" _Bq?
At [over.literal] I read, in the list of examples, that
double operator""_Bq(long double);
is valid, whereas
double operator"" _Bq(long double);
is ill-formed, which is ...
-2
votes
2
answers
72
views
I'm trying to check that var in javaScript can hold reserve words, this error appears [closed]
let undefined = 'koko';
console.log(undefined);
and for that i have this error : Uncaught SyntaxError: Identifier 'undefined' has already been declared (at app.js:1:1).
Knowing that first line of ...
-1
votes
0
answers
27
views
PLS-00103: Encountered the symbol "TO" when expecting one of the following:
LINE/COL ERROR
369/42 PLS-00103: Encountered the symbol "TO" when expecting one of the
following:
( - + case mod new null
continue avg count current max min prior sql stddev sum
...
0
votes
0
answers
18
views
Sybase: enabling LIMIT
Which one of these three statements is the best one to enable the keyword LIMIT?
SET OPTION RESERVED_KEYWORDS = 'LIMIT';
SET OPTION PUBLIC reserved_keywords = 'LIMIT';
SET OPTION PUBLIC....
0
votes
1
answer
55
views
Go back to command line in bash
I am using this code to exit my program:
exit(){
clear
exit 0
}
This clears the screen, but does not exit the script and just leaves a blinking caret in the terminal. Is it possible ...
1
vote
0
answers
17
views
Will guid generation logic ever generate 00000000-0000-0000-0000-000000000000?
I have run into a scenario where a customer may have a nullable guid for me to compare to in my database. I could go ahead and rewrite my call stack to make the object nullable, but I also don't want ...
0
votes
1
answer
45
views
How to use columns BY and OR in Google sheets query? [duplicate]
Currently I use Google Sheets as a database, which has more than 1000 columns from A to AGH. If the query contains column BY or column OR, the result will be null.
How can I avoid that column names ...
2
votes
2
answers
233
views
Pattern matching on a Scala case class with `type` as a field
I have a case class defined for JSON parsing using the Circe library:
final case class Event(
source: Option[String],
nonce: Option[Int],
`type`: Option[Any],
tag: Option[String],
...
0
votes
0
answers
10
views
MariaDB insert error in PHP7 since upgrade from CentOS7 to Oracle Linux Server 8.6 [duplicate]
I'm getting the "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'long, ul_lat, ul_long, lr_lat, lr_long, ...
2
votes
1
answer
384
views
Use a reserved keyword as a property in a typescript interface
I’d like to define a typescript interface to map answers from a web service to a type (similar to what is shown here). Here is an example answer.
{
"type": "Seen",
"...
0
votes
3
answers
87
views
Is there a list of column references that will break query functions in Google Sheets? (column BY, OR)
I am using column references in a Google Sheets query and realized that column BY (Col #77) breaks my query, as BY is a special word in querying. The solution is to enclose BY in quotations (`BY`) ...
0
votes
1
answer
83
views
Is it OK to use "type" as a variable name? [duplicate]
let type = "HI";
console.log(type)
I know its not a reserved word but its showing in blue color while taking as a variable so got a doubt?
0
votes
1
answer
91
views
OpenQuery to a linked server that uses reserved words
Here is an issue that annoys me but I also am hoping someone out there can provide a resolution. We have a third party vendor/app that handles one aspect of our transactions. I am using OpenQuery to ...
-3
votes
2
answers
86
views
MySQL 8 Query Prob With Window Keyword [duplicate]
I have window column in item table and I want use this query but window also mysql command. What can I do?
Query:
"SELECT pos, vnum FROM item WHERE owner_id='".$id_account."' AND ...
0
votes
1
answer
63
views
Are there reserved words/characters/phrases in QnA Maker and how to escape them
I have an operational QnA Maker that works without issue for almost all terms. However, I've noticed that certain terms do not generate chatbot responses even though the terms exist in the KB.
...
0
votes
1
answer
898
views
How to select "Group" column name from another table in an SQL Server?
Group is column in one of the table.
I am using below query. As Group is reserve keyword, getting error while executing below query:
select o.group as group,
p.id as id
from
product p left join org ...
1
vote
2
answers
289
views
What are the rules about using an underscore in a C identifier?
It's common in C (and other languages) to use prefixes and suffixes for names of variables and functions. Particularly, one occasionally sees the use of underscores, before or after a "proper&...
1
vote
1
answer
447
views
How to show all reserved words in C++
In python, we can type help("Keywords") on IDE to show all reserved words, but, can i type a command same as like that to show all reserved words in C++, or what should i do?
2
votes
2
answers
199
views
What is the "no" keyword used for in MySQL?
I just randomly found out that "no" is a reserved word/keyword in Mysql.
I searched on Google what is it used for, but couldn't find an answer.
Can someone explain or is there any link to ...
1
vote
1
answer
135
views
What is the difference between keywords and reserved words in Java?
I have seen this popular stackoverflow post but the Java docs tends to say a different answer in this link The stackoverflow link answer that is accepted says a reserved word will be reserved for ...
1
vote
3
answers
407
views
Mariadb / Mysql BUG? : group by `master` in subquery
I have 2 tables:
sales:
id
invoice
valid
100
IV001
Y
payment:
id
master
amount
test
110
100
200
100
111
100
300
100
112
101
400
101
Then I made a query:
select master, sum(amount) amount from ...
2
votes
1
answer
199
views
Strange displayed style for "manual" Woocommerce custom order status
I'm using the following code to create a new custom order status for Woocommerce. The problem I have is that in the admin, the status shows up as unstyled. How can I style the custom status in a ...
3
votes
1
answer
1k
views
Windows 10 does not let you clone repositories with a folder called "aux" [duplicate]
I have the latest version of Windows 10 (2021-04-07) and I would like to know if there is any correction in this version for the problem of creating folders with reserved names such as: AUX and etc?
...
0
votes
1
answer
88
views
Python reserved keyword as argument does not work (although it should?)
This code
def get_recent_tracks(username, fromuts):
print(fromuts)
recent_tracks = lastfm_network.get_user(username).get_recent_tracks(**{'from':fromuts})
for i, track in enumerate(...
0
votes
5
answers
646
views
Can "printf" be used as a variable name?
Rules for variable names in C are as follows:
A variable name can only have letters (both uppercase and lowercase letters), digits and underscore.
The first letter of a variable should be either a ...
3
votes
1
answer
186
views
How to declare and init nested enum with reserved keyword as type name in Swift?
I'm having a hard time to figure out how to declare a certain nested enum and calling one of it's automatic constructors. This enum i'm trying to declare is supposed to have a reserved keyword as type ...
2
votes
1
answer
82
views
Why I am getting this syntax error on making an atom "band"?
1> Band = band.
* 1: syntax error before: 'band'
I am trying to make an atom here, but I am getting a syntax error. Why?
2
votes
1
answer
72
views
Col BY causing parse error in Google sheets query
I'm trying to run the following Query in google sheets, but am receiving a parse error when I try to select the column BY. Without this column, it runs as expected.
Query below:
=QUERY('Applications ...
1
vote
2
answers
2k
views
DEFAULT is not allowed in this context error
Im trying to add an index to the database but I keep getting an error:
PG::SyntaxError: ERROR: DEFAULT is not allowed in this context
After reading the documentation for hours I can't seem to fix ...
0
votes
1
answer
329
views
How to Escape Google Chrome webkitSpeechRecognition for the word "period" to prevent "." Interpretation?
I am working on a simple speech recognition page using HTML and JavaScript. There are certain reserved words and phrases that are apparently undefined in the API documentation for Google Chrome's ...
0
votes
0
answers
45
views
Without let before name - TypeError: name.map is not a function
If I don't use let or var before allocation to my varaiable name I get a TypeError: name.map is not a function
Is name a reserved word or anything else. If so I'm wondering why I don't get any error ...
5
votes
2
answers
1k
views
How to deserialize JSON object with Newtonsoft when it's fields names are reserved keywords like "short"?
I have some JSON object:
"opf": {
"type": "2014",
"code": "12247",
"full": "Публичное акционерное общество",
"...
0
votes
1
answer
187
views
Lisp: Where can I find a list of reserved characters for sbcl?
Is anyone able to point to a list of reserved characters for Lisp? I'm trying to start up some non-trivial programs for learning purposes. I can find the functions that already exist using emacs, but ...
3
votes
2
answers
144
views
In Javascript, what does the reserved keyword "short" do?
I'm merely trying to find the definition and usage of the key word, short, in JavaScript. I do not care about backwards compatibility and the likes, as to say that I don't want responses as to if, how,...
1
vote
2
answers
228
views
Can anyone tell me what is wrong with my code?
Is anyone able to tell me what is wrong with my code? The error I keep seeing is, Missing ; before statement. (line 3, file "Code"). I'm following a tutorial on YouTube and I can't tell what is the ...
1
vote
1
answer
304
views
Mysql - cannot insert a column name conatining colons to a table
I'm working on a project of a simple chatting app, using python. In order to save the data of each client, I use a MySql database. When a new member signs up, a column is added to one of my tables, in ...
0
votes
0
answers
170
views
SQL ERROR: [Npgsql] ErrorMessage: Backend sent unrecognized response type: F
I am trying to execute the following sql:
INSERT INTO equity (cod_equity,name,cod_class_equity,isin,sedol,cod_country,cod_exchange,cod_currency,ticker_bbg,underlying_asset_conversion,...
1
vote
1
answer
360
views
Reserved keyword as identifier in JPA query
I defined multiple JPA named queries this way:
SELECT group FROM FOO_Group group WHERE group.valid = :valid ORDER BY group.date
Even though group is a reserved keyword in SQL, this never seemed to ...
5
votes
2
answers
184
views
Is there a built-in PHP function to check if a given string is a reserved keyword?
I'm looking at this: https://www.php.net/manual/en/reserved.php
I've made numerous search queries for things like: "php determine if string is reserved keyword".
I find nothing, and I'm starting to ...
-2
votes
2
answers
375
views
Executing constructor from Parent class to Child class
In what situations should I execute a constructor of the parent class for a child class? And why use the "base" reserved word?
Exemple:
0
votes
1
answer
437
views
How to create a table with reserved keyword column name in vertica?
CREATE TABLE IF NOT EXISTS Customer
(
user int NOT NULL
);
This gives syntax error.
It works when using double quotes but then in the column name double quotes also appear in the table.
9
votes
2
answers
2k
views
Is "state" a reserved word in React?
I tried the React documentation, but couldn't find anything about reserved words. I was wondering: is state in React a reserved word?
0
votes
0
answers
441
views
ORA-01747 error invalid user.table.column, table.column, or columns specification
i wrote this proc in sqldevelopers and i think i got this error since the fields :"no" and "year" are reserved words i tried to fix it using brackets but it doesnt seems to help...
hope you will be ...
0
votes
2
answers
1k
views
Using a keyword as an alias in Cosmos DB
I want to use the keyword order as an alias of an expression in the SELECT clause.
To reproduce, insert the following into a Cosmos DB collection.
{
"name": "John Doe"
}
The following query ...
1
vote
1
answer
58
views
Why does bash prohibit a shell function named `df`?
I am using GNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu).
I have the following lines in one of my startup files:
df() {
printf "Hello, world!\n"
}
When source that file, I get ...
1
vote
0
answers
50
views
In Julia, can reserved keywords be aliased with letter-only tokens?
In C, one can easily define a macro to achieve such a thing, because the macro system is a dumb text substitution.
#define se fi
se ( true )
print( "jes!" );
In contrast, Julia with its syntactic ...
4
votes
0
answers
171
views
Script based reserved key word not accpted but it's accept in tag
Here I come up with question about Reserved words. As per my knowledge a keyword can not be a variable.
I've faced a issue about passing reserved word string as a argument in both script based code ...
9
votes
1
answer
744
views
Define an attribute of a dataclass with a reserved word "class" and serialize it
Ok I'm trying to define a dataclass to enqueue a job in redis for a sidekiq worker, the specification of the sidekiq payload requires some attributes something with this format:
{
"class": "...
0
votes
0
answers
45
views
Will using a reserved word with a capital letter bring unwanted consequences in Node?
I'm currently in a debate with a friend of mine (Currently building an app in Node). I remember having some problems with Ruby on Rails when I was using a reserved word. A friend of mine is using ...
2
votes
2
answers
1k
views
Syntax to escape a reserved word in Oracle while using abbreviated table names
I have an Oracle 11g database with table named "time_recs". I need to run a query in SQL Developer, including a column named comment.
As comment is a reserved word, I need to escape it, that´s ok. The ...