Hello there,
I have quite problem with PG 7.3 & 7.4b5
I create tables using pgAdmin3 v-1.0.1
I created a table "xType". Pay attention to capital "T" letter.
Than I tryed to insert data to it using psql tool.
But I have error: 'ERROR: relation "xtype" does not exist'
In error all chars are small!
If I create table in pgAdmin using all small chars, everithing works fine.
Note: when I create table with a capital chars from psql, it is created with
small chars.
Ok, as I write this mail I found ansver to my question: I have to wrap table
names in quote chars to avoid downcasing. I have to write:
select * from "xType";
than it works.
So now question is: why "select * from xTypes" is a wrong query, why table
name is downcasing if it is not wrapped in quote? Is it a bug, or it's
according to some standard?
Doesn't it violate documentation:
=============== ===========
Identifier and key word names are case insensitive. Therefore
UPDATE MY_TABLE SET A = 5;
can equivalently be written as
uPDaTE my_TabLE SeT a = 5;
=============== ===========
Thanks,
Vadim Chekan.
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match 2 1401
If you put quotes arounds the table name when you create it, then you will
need then whenever you refer to it also. If when you create the table you
don't use quotes, then you won't need then during the query either, as the
documentation says.
Without quotes, Postgresql is neither case-sensetive nor case-preserving.
With quotes it's both.
Hoe this helps,
On Sun, Oct 26, 2003 at 10:43:58AM +0000, Vadim Chekan wrote: Hello there, I have quite problem with PG 7.3 & 7.4b5 I create tables using pgAdmin3 v-1.0.1 I created a table "xType". Pay attention to capital "T" letter. Than I tryed to insert data to it using psql tool. But I have error: 'ERROR: relation "xtype" does not exist' In error all chars are small! If I create table in pgAdmin using all small chars, everithing works fine. Note: when I create table with a capital chars from psql, it is created with small chars. Ok, as I write this mail I found ansver to my question: I have to wrap table names in quote chars to avoid downcasing. I have to write: select * from "xType"; than it works. So now question is: why "select * from xTypes" is a wrong query, why table name is downcasing if it is not wrapped in quote? Is it a bug, or it's according to some standard? Doesn't it violate documentation: =============== =========== Identifier and key word names are case insensitive. Therefore UPDATE MY_TABLE SET A = 5; can equivalently be written as uPDaTE my_TabLE SeT a = 5; =============== =========== Thanks, Vadim Chekan. ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match
--
Martijn van Oosterhout <kl*****@svana. org> http://svana.org/kleptog/ "All that is needed for the forces of evil to triumph is for enough good men to do nothing." - Edmond Burke "The penalty good people pay for not being interested in politics is to be governed by people worse than themselves." - Plato
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE/nEogY5Twig3Ge+Y RAgMGAJ425f52xu TfCVZGo2MNLaGu3 xq7kgCfchYg
DX66RxWJZda+ahL 40AVTWJ4=
=QS9p
-----END PGP SIGNATURE-----
On Sun, Oct 26, 2003 at 10:43:58AM +0000, Vadim Chekan wrote: Hello there,
I have quite problem with PG 7.3 & 7.4b5 I create tables using pgAdmin3 v-1.0.1 I created a table "xType". Pay attention to capital "T" letter.
And when you created it, dod you write it "xType" or xType? With the
quotes, you enforce cases-sensitivity.
Doesn't it violate documentation:
No. The same page says that "" will enforce the case you wrote.
A
--
----
Andrew Sullivan 204-4141 Yonge Street
Afilias Canada Toronto, Ontario Canada
<an****@liberty rms.info> M2P 2A8
+1 416 646 3304 x110
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Johannes Koch |
last post by:
Hi there,
I'd like to apply an xpath to both HTML and XHTML documents. First I
create a DOM document with a Java DOM parser, then apply the xpath with
Xalan's XPathAPI class. The problem is that in HTML DOM element names
are all upper-case, whereas in Core DOM (used for the XHTML documents)
element names are lower-case. When I use a lower-case xpath, e.g.
/head
|
by: William Stacey [MVP] |
last post by:
Doing a project that makes heavy use of domain names such as
"www.yahoo.com."
Domain names preserve case but are concidered equal if names are same but
case is different.
I know I can store these names as keys in a hashtable with case insens
comparer and CaseInsensitiveHashCodeProvider. That works fine. The benifit
is I can store the domain name and not worry about case and return the user
supplied case without storing an state, etc. ...
|
by: UmmagummA |
last post by:
How to make a ComboBox to display characters only in Upper or Lower Case as
you type?
I was trying to override OnKeyDown and OnKeyPress but coudn't figure it
out. The problem is that in OnKeyPress
new key value is not writed in the Combo.Text until the event is executed.
|
by: Shabs |
last post by:
Hi,
We are having this problem here on our project where we store all
firstnames, lastnames in the oracle database in uppercase, when we retrieve
the data to be used in web application and email letters, we do a propercase
on the names. But, for names like O'Rieley, McDonald, propercasing the name
returns Orieley, Mcdonald. Our client/customer requires us to display it as
ORieley, McDonald. Did anybody come across a similar situation or...
|
by: Visual Systems AB \(Martin Arvidsson\) |
last post by:
Hi!
Is it possible to enable Charater Casing in a ComboBox, if, how?
As of now i am using KeyUp event to make sure that the char entered is
Uppercase.
Regards
Martin Arvidsson
| |
by: Smokey Grindle |
last post by:
I always learned when you have a constant name it in all upper case like
this
PASSWORD_MAXIMUM_LENGTH
but FxCop is saying this isn't correct, but doesnt tell me the correct
"accepted" way in .net to name a constant... what is it?
|
by: somenath |
last post by:
Hi All,
I have one question regarding return value cast of malloc.
I learned that we should not cast the return value of malloc because
it is bug hider.
But my question is as mentioned bellow .
Lets say I have not included stdlib.h in my program still I am using
malloc so compiler will throw warring because with out prototype
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |