Hi,
try with backtick:
drop class `'stunde'`
I've tried it on 2.2.7 an it works.
Il giorno lunedì 22 agosto 2016 18:10:57 UTC+2, hartmut bischoff ha scritto:
>
> Due to some mishandling of strings, my application generated a class
> 'stunde' (with quotes).
> Although the class is created and properly displayed using database#get
> through REST,
> its hard to access it.
>
> Worst, in Studio or via command-line its not possible to alter or delete
> it.
>
> ORD.database_classes
>>
>> => ["'stunde'", "E", "V", "day_of", "monat", "stunde", "tag",
>>> "time_base", "time_of"]
>>
>>
>
>> ORD.execute{ 'delete class "'stunde'" ' }
>> SyntaxError: (irb):10: syntax error, unexpected tIDENTIFIER, expecting '}'
>> ORD.execute{ 'delete class "'stunde'" ' }
>>
>
>
>
> ORD.execute{ 'alter class 'stunde' name StundeNeu ' }
>
> SyntaxError: (irb):4: syntax error, unexpected tIDENTIFIER, expecting '}'
>
> ORD.execute{ 'alter class 'stunde' name StundeNeu ' }
>
>
> I attached the compromised test-database
>
>
> If its possible to create such a class, a path to alter or delete it,
> should be provided, too.
> But maybe I did not find it in the documentation.
>
> Some hints?
>
> Greetings from Stuttgart
>
> hartmut
>
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.