case-sensitive

Doctrine2 case-sensitive query

本秂侑毒 提交于 2019-12-19 08:00:09
问题 for some reason I need to query 'case-sensitive' in MySql + doctrine 2. Is it possible? neither $em->find('UserEn', 'Bob') nor $q = $this->em->createQuery('select u from UserEn u where u.name = :name'); $q->setParameter('name', 'Bob'); $result = $q->getResult(); is working. Any idea? 回答1: Maybe you are using a MySQL collation ending with "_ci", like "utf8_general_ci". "ci" stands for "case insensitive". If this is the case, it is not a Doctrine issue, but a MySQL issue. See http://dev.mysql

what are the changes in mysql 8 result rowset case?

我与影子孤独终老i 提交于 2019-12-19 05:09:53
问题 when running SELECT maxlen FROM `information_schema`.`CHARACTER_SETS`; mysql 5.7 and mysql 8 produce different results: on mysql 5.7 the results row names are lower cased, on mysql 8 the results row names are upper cased. NB : in the CHARACTER_SETS table, the comumn name is MAXLEN (upper cased). Since I can't find a resource documenting it, my question is : what are the changes in mysql 8 result rowset case ? 回答1: MySQL 8.0 did change the implementation of some views in the INFORMATION_SCHEMA

How can Python regex ignore case inside a part of a pattern but not the entire expression? [duplicate]

故事扮演 提交于 2019-12-19 02:04:19
问题 This question already has answers here : restrict 1 word as case sensitive and other as case insensitive in python regex | (pipe) (2 answers) Closed last month . Say I have a string containing foobar fooBAR FOObar FOOBAR , and I want to search all instances containing a case insensitive "foo" or "FOO" but a lowercase "bar". In this case, re.findall should return ['foobar', 'FOObar'] . The accepted answer for this question explains that it can be done in C# with (?i)foo(?-i)bar , but Python

C# Filepath Recasing

≡放荡痞女 提交于 2019-12-18 11:45:18
问题 I'm trying to write a static member function in C# or find one in the .NET Framework that will re-case a file path to what the filesystem specifies. Example: string filepath = @"C:\temp.txt"; filepath = FileUtility.RecaseFilepath(filepath); // filepath = C:\Temp.TXT // Where the real fully qualified filepath in the NTFS volume is C:\Temp.TXT I've tried the following code below and many variants of it and it still doesn't work. I know Windows is case-insensitive in general but I need to pass

How to enable case-sensitivity under IIS Express?

て烟熏妆下的殇ゞ 提交于 2019-12-18 06:54:30
问题 How should I go about enabling case sensitive request handling if using IIS Express? Is there a setting in IIS Express? or can a URL Rewrite rule accomplish this? or perhaps catch-all HTTP Handler to do the case check? The goal is to be able to catch case inconsistencies locally, with respect to static files, before deployment to both IIS and S3 (where S3 is case sensitive). Thanks 回答1: IIS is case-sensitive... ...but not for files. It is a misnomer that IIS is case-insensitive, it is the

Case sensitive and insensitive in the same pattern

北战南征 提交于 2019-12-18 05:54:15
问题 Thanks to the help with my previous homework question Regex to match tags like <A>, <BB>, <CCC> but not <ABC>, but now I have another homework question. I need to match tags like <LOL> , <LOLOLOL> (3 uppercase letters, with repeatable last two letters), but not <lol> (need to be uppercase). Using the technique from the previous homework, I tried <[A-Z]([A-Z][A-Z])\1*> . This works, except there's an additional catch: the repeating part can be in mixed case! So I need to also match <LOLolol> ,

Sort array items in PHP so that it is not case sensitive to letters

梦想与她 提交于 2019-12-18 05:44:24
问题 When I use sort($topics) I get something along the lines of: Apple Green Zebra grass In this example, "grass" starts with a lower case g but ends up after "Zebra" which has a capital letter. How do I make it so that it sorts it where it ignores whether the word starts with capitals or not? Apple Green grass Zebra 回答1: Call usort() as usort($topics, 'strnatcasecmp') . strcasecmp would do the job, too, but strnatcasecmp will also sort properly when you have numbers in your string. 回答2: There is

How do I determine whether the filesystem is case-sensitive in .net?

狂风中的少年 提交于 2019-12-18 05:43:44
问题 Does .net have a way to determine whether the local filesystem is case-sensitive? 回答1: You can create a file in the temp folder (using lowercase filename), then check if the file exists (using uppercase filename), e.g: string file = Path.GetTempPath() + Guid.NewGuid().ToString().ToLower(); File.CreateText(file).Close(); bool isCaseInsensitive = File.Exists(file.ToUpper()); File.Delete(file); 回答2: Keep in mind that you might have multiple file systems with different casing rules. For example,

Reverse case of all alphabetic characters in C# string

你说的曾经没有我的故事 提交于 2019-12-17 19:28:47
问题 What is the simplest way to reverse the case of all alphabetic characters in a C# string? For example "aBc1$;" should become "AbC1$;" I could easily write a method that does this, but I am hoping there is a library call that I don't know about that would make this easier. I would also like to avoid having a list of all known alphabetic characters and comparing each character to what is in the list. Maybe this can be done with regular expressions, but I don't know them very well. Thanks.

In VBA get rid of the case sensitivity when comparing words?

帅比萌擦擦* 提交于 2019-12-17 18:26:30
问题 I am working on an VBA program which would allow the user to type an address and find the location by matching elements of the address with a database. Unfortunately, I am having a recurrent problem with the case sensitivity. For example, when I am using this code : For i = 11 To lRowB Range("B" & i).Activate myResult = IsNumeric(Application.Match(ActiveCell.Value, manilaListRange, 0)) It is gonna compare the value of the active cell to a list of words from my database. Problem is, if in my