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.

reserved-words
Filter by
Sorted by
Tagged with
10 votes
1 answer
969 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": "...
Hernan Acosta's user avatar
2 votes
2 answers
2k 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 ...
Ruben Gullini's user avatar
2 votes
1 answer
212 views

How to access a valid OCaml identifier from Reason that is a reserved keyword in Reason

Is there a way to use an OCaml identifier that is a reserved keyword in Reason? Let's consider the following example: (* some_library.ml (valid OCaml) *) type pub = { x: string; } When I try to ...
jhrdka's user avatar
  • 55
0 votes
1 answer
841 views

Does Laravel handle reserved PHP and MySQL words?

We tend to use the reserved word name quite often in our MySQL columns with all Laravel applications. We never had a problem so far. So I was wondering - does Laravel handle that automatically?
molerat's user avatar
  • 986
3 votes
2 answers
3k views

missing the following properties from type Location 'Location': ancestorOrigins, hash, host, hostname etc in mongodb

I was trying to create a mongodb document like When I hover over the IUserModel, it was giving such error missing the following properties from type Location 'Location': ancestorOrigins, hash, ...
WasiF's user avatar
  • 27.5k
1 vote
2 answers
338 views

Using eval as prototype method name in JavaScript or NodeJS

I know there are several questions on valid identifier names, property names, reserved words etc., but there is some variation (and much verbosity) in the answers. I would just like to know the answer ...
Gutte's user avatar
  • 13
4 votes
2 answers
500 views

Kotlin does not identify Java Reserved Keywords

I am having a problem with using reserved keywords of Java in Kotlin. As not all the reserved keywords are available in Kotlin, Kotlin compiler can not (does not?) detect the reserved keywords that ...
musooff's user avatar
  • 6,612
2 votes
1 answer
41 views

JavaScript reserved keywords not correctly being passed through function

I'm attempting to build a page where a user can mark cities on a map that they have visited, storing the data on Firebase for future visits. The issue I've run into is with cities such as "New York" ...
boc4life's user avatar
  • 951
3 votes
2 answers
1k views

Reserved word as member of enum

I wanted to make a python Enum work having a reserved word as member. class Test(Enum): one = "one" is_ = "is" I wanted to customize __name__ to have the usual syntax return >>>...
bad_coder's user avatar
  • 12k
2 votes
1 answer
1k views

spark-submit fails when case class fields are reserved java keywords with backticks

I have backticks used for reserved keyword. One example for the case class is as follows: case class IPC( `type`: String, main: Boolean, normalized: ...
Anish's user avatar
  • 1,920
4 votes
3 answers
690 views

Reserved function names in JavaScript

After renaming my function the code stopped working. That new name scrollIntoView seems to be clashing with the element.scrollIntoView() method. <div onmousedown="scrollIntoView('id001')"/> ...
Jan Tosovsky's user avatar
0 votes
2 answers
1k views

Filtering columns with SQL reserved keywords as column name in PostgreSQL

A set of data is uploaded by my colleague and I have to filter the data by date. Unfortunately my colleague used reserved words of year and month for uploading the data so the data in database looks ...
Sana's user avatar
  • 523
0 votes
0 answers
259 views

Adding DELETE operation causes TypeError

I created a Node.js rest api. It follows the general controller, model, schema structure and uses a restify server which I start by running node index.js. The controller consists of a controllers/...
runnerpaul's user avatar
  • 6,524
0 votes
1 answer
156 views

How can I make node or edge label CREATE in AgensGraph?

I have been making a text analysis system with AgensGraph. And I use the SPO model of RDF triple structure as graph-schema. But I faced one problem: AgensGraph doesn't allow CREATE labels. I think ...
G.-G.'s user avatar
  • 62
6 votes
1 answer
3k views

Is it possible to redefine keywords in Python?

I ran into an issue wherein I had to jsonify everything that my API was set to return. As I was writing a decorator and applying it to every single method, a thought occurred to me: "Can't I just ...
Simon's user avatar
  • 865
0 votes
1 answer
51 views

Should I be concerned if my rails class is overridden by a reserved public method?

When building my rails application I was not yet aware that there were certain class names or words that are reserved for use. I made a class named "Protocol" (class Protocol < ApplicationRecord) ...
Dennis's user avatar
  • 100
2 votes
0 answers
80 views

Call a method named `var` in Scala [duplicate]

I am using a third-part Java library, which defines a method named var. In Java, that is not a problem. In Scala, varis a reserved word and obj.var() gives a compilation error. Is there a more ...
Troy Daniels's user avatar
  • 3,434
0 votes
1 answer
131 views

SQL Update Statement in c# with reserved-words

I have a problem with update statement: In column names i have characters like: % , []. In "insert into" statement I just put that in quotation marks and worked. But can't execute this update ...
janek9971's user avatar
0 votes
0 answers
50 views

How do you add a reserved word to your Javascript development environment?

For tasks that are done very often, e.g. console.log, I would like to create a reserved word. Yes, I could create a utility function, but then I'd have to import it into every file where I would ...
zero_cool's user avatar
  • 4,130
8 votes
2 answers
357 views

Can reserved function names be overloaded?

This question is a follow-up question of this one. Consider the following program: #include <cmath> // meaningless, only for language-lawyer purpose void abs(void*) {} int main(){ abs(...
xskxzr's user avatar
  • 12.8k
0 votes
3 answers
432 views

How to get a whole word(not whole value) on jquery keypress event?

I am working on a project where I want to capitalize each word, as you type in textarea on keypress event. Now, I am starting with just few words such as SELECT, FROM and WHERE, which is by-default ...
Tony Montana's user avatar
0 votes
1 answer
121 views

Create a dataframe with a reserved word as column name

I tried the 2 ways below and it seems that whatever I do, a dot is added at the end of the name of the column "repeat": df <- data.frame(col1=1:5,col2=6:10,"repeat"=11:15) df <- data.frame(...
Julien Massardier's user avatar
3 votes
2 answers
7k views

Laravel+Vue. Caching problems (actually, just reserved variable name)

I create Laravel+Vue simple REST API web-app. In Vue component I have a method with an api request. I simplified this to see the core of the problem: phpValidate() { axios .post("api/validate", ...
Виталий Комаров's user avatar
0 votes
1 answer
230 views

Oracle SQL Stored Procedure with Oracle reserved words passed to variable

I have a stored procedure that gets passed a string of values separated with spaces, which then does a search in the table and returns data where a column has any of those values. All went well until ...
IoanaB's user avatar
  • 1
4 votes
1 answer
488 views

Why is my Cordova Android app throwing a "reserved word" error when defining an object using a class declaration?

My JavaScript app works well in a web browser, but displays an error when running the app on Android using Cordova: Uncaught SyntaxError: <unknown message reserved_word> This error is tied to ...
toasty's user avatar
  • 238
5 votes
1 answer
2k views

CakePHP 3 + ORM Query builder and column name escape

A've already rewrite some application from CakePHP 2 to CakePHP 3. I have some structure in database with column: key (autogenerated key-string). In mysql key is a keyword, so when I write an SQL ...
plugowski's user avatar
  • 323
0 votes
2 answers
67 views

how to determine the data type of reserved identifier in C

I am rather new to using some advanced concepts in C. I am trying to understand the code from an API that uses _, >> and <<. I understand _ is used as a reserved identifier, >> is ...
The Voyager's user avatar
-2 votes
2 answers
554 views

extern "C" does not enable C headers to use C++ reserved words

I'm trying to build an Apple Open Source driver stack, the IOGraphicsFamily. It #includes some xnu kernel headers. These are all C, but the C++ code protects them with extern "C". However I am ...
Mike Crawford's user avatar
5 votes
1 answer
5k views

java.lang.ClassCastException: org.hibernate.hql.internal.ast.tree.SqlNode cannot be cast to org.hibernate.hql.internal.ast.tree.FromReferenceNode

I am trying to execute a select statement in JPA which is throwing me the above error. The code is: TypedQuery<ListPersonsObj> typedQuery = null; String query = ""; List<ListPersonsObj> ...
Rubal Jain's user avatar
1 vote
4 answers
1k views

Javascript reserved word and object

I'm making a dictionary of words, so there are 1,000,000+ words. The problem comes when I need to store the word constructor. I know this is a reserved word in javascript, but I need to add it to the ...
Alexis's user avatar
  • 24.4k
5 votes
2 answers
4k views

Why can't class attributes be named as reserved words in python?

It seems reserved words can not be used as attributes in python: $ python Python 3.6.2 |Continuum Analytics, Inc.| (default, Jul 20 2017, 13:51:32) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux ...
Daniel Gonzalez's user avatar
1 vote
1 answer
1k views

OleDbException syntax error in INSERT INTO statement

I'm building an SQL INSERT command using the OleDbCommandBuilder adapter.InsertCommand = builder.GetInsertCommand(); and I get an exception while trying to add data to database on this line: ...
NotGI's user avatar
  • 468
1 vote
1 answer
173 views

Lua require error if script is called "table.lua"?

Trying to replicate this simple Lua example (using the improved code in the second post), I encountered the following strange issue: I copied the code verbatim, but happened to call the first file "...
clüles's user avatar
  • 37
2 votes
3 answers
733 views

Using reserved words in C++

I have a fairly large and complicated set of applications that were written in an older version of VC++. There are methods in several of the lower-level classes (used everywhere) named "export()". ...
Jeff Dege's user avatar
  • 11.5k
0 votes
1 answer
212 views

Use Python reserved words in an XML File

I'm currently trying to use python's (3.6) xml.etree.ElementTree commands to write an xml file. Some of the Elements and Subelements I need to write must have "id" and "map" fields, which are reserved ...
Newpy's user avatar
  • 1
-2 votes
1 answer
382 views

Check SQL schema for reserved words and find suitable replacement

Wasted many hours troubleshooting my DB which included maxValue as a column name. I've since discovered it was a reserved word. I've used type and timestamp with both MySQL and MariaDB without ...
user1032531's user avatar
  • 25.7k
8 votes
3 answers
13k views

How do I escape reserved words used as column names on HIVE?

When I am executing following query in HIVE, it is giving me current date instead of the column values from USER_INFO table. SELECT CURRENT_DATE FROM USER_INFO LIMIT 1; How do I escape reserved ...
Kamleshkumar Gujarathi's user avatar
-3 votes
2 answers
116 views

Set "hints" for function name

I'm trying to declare function named hints and it does not work. function hints() { alert("E"); } <select id = "cbTipo" onchange="hints();"> <option value = 0>1</option> ...
Jonathan Costa's user avatar
0 votes
3 answers
3k views

Can I use reserved word as parameter of a function in javascript?

var myName = 'John'; function greet(name) { console.log('Hello, ' + name); } greet(myName); Here I'm using 'name' as a parameter of the greet(). Since we know that we can't use javascript reserved ...
A.R. Nirjhor's user avatar
2 votes
3 answers
1k views

Semantics of `errno`

I tried searching the standards but couldn't find anything specific regarding errno. What I mean is some implementations define errno as a global variable while some define it as a macro #define ...
Ajay Brahmakshatriya's user avatar
0 votes
1 answer
821 views

Invalid R Variable name error

below is the structure of my dataframe and i keep getting an error when i run some R code against it; Error: At least one of the class levels is not a valid R variable name; This will cause errors ...
femi's user avatar
  • 984
0 votes
1 answer
2k views

How to escape a word in a query string?

I have a URL that looks like this more or less: www.xyz.com?parameter1=value&region=global The problem is that some browsers are literally changing &reg into ® so the URL is breaking because ...
buskerdog's user avatar
1 vote
2 answers
971 views

Count Occurrences of Reserved Characters in Regexp (Javascript)

I am trying to count the occurrences of normally reserved characters in Regexp in a given string. So for example, the asterisk (*) is a reserved character in Regexp. So, while I can do this: var ...
Mister_Maybe's user avatar
10 votes
1 answer
223 views

Creating a function handle to an overloaded `end` function

MATLAB allows overloading various operators for custom classes. One of the unlisted overloadable operators is end, as can be learned from \matlab\lang\end.m: % END(A,K,N) is called for indexing ...
Dev-iL's user avatar
  • 23.9k
0 votes
1 answer
237 views

Can reserved keywords be aliased in Ruby?

Ruby comes with an alias reserved keyword. However it seems that unlike the shell equivalent, you can't use it to alias reserved keyword, like if. Is there any mechanism to do perform such an alias ...
psychoslave's user avatar
  • 2,951
2 votes
2 answers
5k views

Variable names to avoid in Python [duplicate]

Is there a list somewhere (or better yet, a module!) that I can use to check whether a string is a "bad" choice for a variable name, where "bad" is defined as something like "is a keyword or built-in ...
John B's user avatar
  • 3,451
0 votes
1 answer
54 views

jQWidgets: Is there a place where i can find a structured list of used properties?

I don't really know how this question fits or not to the site, don't hesitate to comment if not (will be more useful than a bare downvote). I am actually working on the minification of a JS core file,...
Kaddath's user avatar
  • 6,136
0 votes
3 answers
2k views

What names does CMake reserve?

I am creating a library, where all components are independent (it's only because it's easier to manage 1 git repo, really). In that library's root folder, I have 1 sub-folder for each part of the ...
user3459474's user avatar
0 votes
0 answers
1k views

PDO Error - Syntax error or access violation: 1064

I am trying to run a query but it looks like I am conflicting with a reserved keyword. I can't figure out where the conflict is. I am relatively new to this, so any help would be appreciated. I have ...
Daniel's user avatar
  • 433
9 votes
1 answer
862 views

Should a using command issue a warning when using a reserved identifier?

When using the line using std::literals::chrono_literals::operator""s; in g++ 6.3.0, the compiler issues a warning stating: warning: literal operator suffixes not preceded by '_' are reserved for ...
NathanOliver's user avatar

1
2
3 4 5
7